| java.lang.Object | |
| ↳ | org.springframework.instrument.classloading.SimpleLoadTimeWeaver |
LoadTimeWeaver that builds and exposes a
SimpleInstrumentableClassLoader.
Mainly intended for testing environments, where it is sufficient to
perform all class transformation on a newly created
ClassLoader instance.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new
SimpleLoadTimeWeaver for the current context
ClassLoader. | |||||||||||
Create a new
SimpleLoadTimeWeaver for the given
ClassLoader. | |||||||||||
| 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. | |||||||||||
This implementation builds a
SimpleThrowawayClassLoader. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.instrument.classloading.LoadTimeWeaver
| |||||||||||
Create a new SimpleLoadTimeWeaver for the current context
ClassLoader.
Create a new SimpleLoadTimeWeaver for the given
ClassLoader.
| classLoader | the ClassLoader to build a simple
instrumentable ClassLoader on top of
|
|---|
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
This implementation builds a SimpleThrowawayClassLoader.
ClassLoader; should return
a new instance for each call, with no existing state