| java.lang.Object | |
| ↳ | org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver |
LoadTimeWeaver implementation for GlassFish's InstrumentableClassLoader.
As of Spring 3.0, GlassFish V3 is supported as well.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of the
GlassFishLoadTimeWeaver class
using the default ClassLoader. | |||||||||||
Creates a new instance of the
GlassFishLoadTimeWeaver class. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add a
ClassFileTransformer to be applied by this
LoadTimeWeaver. | |||||||||||
Return a
ClassLoader that supports instrumentation
through AspectJ-style load-time weaving based on user-defined
ClassFileTransformers. | |||||||||||
Return a throwaway
ClassLoader, enabling classes to be
loaded and inspected without affecting the parent ClassLoader. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.instrument.classloading.LoadTimeWeaver
| |||||||||||
Creates a new instance of the GlassFishLoadTimeWeaver class
using the default ClassLoader.
Creates a new instance of the GlassFishLoadTimeWeaver class.
| classLoader | the specific ClassLoader to use; must not be null |
|---|
| IllegalArgumentException | if the supplied classLoader is null;
or if the supplied classLoader is not an InstrumentableClassLoader
|
|---|
Add a ClassFileTransformer to be applied by this
LoadTimeWeaver.
| transformer | the ClassFileTransformer to add
|
|---|
Return a ClassLoader that supports instrumentation
through AspectJ-style load-time weaving based on user-defined
ClassFileTransformers.
May be the current ClassLoader, or a ClassLoader
created by this LoadTimeWeaver instance.
ClassLoader which will expose
instrumented classes according to the registered transformers
Return a throwaway ClassLoader, enabling classes to be
loaded and inspected without affecting the parent ClassLoader.
Should not return the same instance of the ClassLoader
returned from an invocation of getInstrumentableClassLoader().
ClassLoader; should return
a new instance for each call, with no existing state