FileDocCategorySizeDatePackage
InstrumentableClassLoader.javaAPI DocGlassfish v2 API3107Fri May 04 22:35:04 BST 2007com.sun.enterprise.loader

InstrumentableClassLoader

public interface InstrumentableClassLoader
This interface is implemented by the Container and provides persistence providers with the ability to perform transformation of entity classes.

Fields Summary
Constructors Summary
Methods Summary
public voidaddTransformer(javax.persistence.spi.ClassTransformer transformer)
Registers the supplied transformer. All future class definitions loaded by this loader will be first passed to the transformer.

param
transformer The transformer to register with the loader
see
java.lang.instrument.Instrumentation#addTransformer

public java.lang.ClassLoadercopy()
Create and return a temporary loader with the same visibility as this loader. The temporary loader may be used to load resources or any other application classes for the purposes of introspecting them for annotations. The persistence provider should not maintain any references to the temporary loader, or any objects loaded by it.

return
A temporary classloader with the same classpath as this loader