|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.instrument.classloading.SimpleLoadTimeWeaver
public class 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.
getInstrumentableClassLoader()
,
SimpleInstrumentableClassLoader
,
ReflectiveLoadTimeWeaver
Constructor Summary | |
---|---|
SimpleLoadTimeWeaver()
Create a new SimpleLoadTimeWeaver for the current context class loader. |
|
SimpleLoadTimeWeaver(SimpleInstrumentableClassLoader classLoader)
Create a new SimpleLoadTimeWeaver for the given class loader. |
Method Summary | |
---|---|
void |
addTransformer(ClassFileTransformer transformer)
Add a class file transformer to be applied by this load-time weaver. |
ClassLoader |
getInstrumentableClassLoader()
Return a class loader that supports instrumentation through AspectJ-style load-time weaving based on user-defined ClassFileTransformers . |
ClassLoader |
getThrowawayClassLoader()
This implementation builds a SimpleThrowawayClassLoader . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLoadTimeWeaver()
public SimpleLoadTimeWeaver(SimpleInstrumentableClassLoader classLoader)
classLoader
- the ClassLoader to build an simple instrumentable
ClassLoader on top ofMethod Detail |
---|
public void addTransformer(ClassFileTransformer transformer)
LoadTimeWeaver
addTransformer
in interface LoadTimeWeaver
transformer
- the class file transformer to addpublic ClassLoader getInstrumentableClassLoader()
LoadTimeWeaver
ClassFileTransformers
.
May be the current class loader, or a class loader created by this
LoadTimeWeaver
instance.
getInstrumentableClassLoader
in interface LoadTimeWeaver
ClassFileTransformers
public ClassLoader getThrowawayClassLoader()
SimpleThrowawayClassLoader
.
getThrowawayClassLoader
in interface LoadTimeWeaver
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |