|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoadTimeWeaver
Defines the contract for adding one or more
ClassFileTransformers
to a
ClassLoader
- typically the current context class loader.
Implementations may of course provide their own class loader as well.
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()
Return a throwaway class loader, enabling classes to be loaded and inspected without affecting the parent class loader. |
Method Detail |
---|
void addTransformer(ClassFileTransformer transformer)
transformer
- the class file transformer to addClassLoader getInstrumentableClassLoader()
ClassFileTransformers
.
May be the current class loader, or a class loader created by this
LoadTimeWeaver
instance.
ClassFileTransformers
ClassLoader getThrowawayClassLoader()
Should not return the same instance of the ClassLoader
returned from an invocation of getInstrumentableClassLoader()
.
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |