|
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 ClassLoader
.
Implementations may of course provide their own ClassLoader
as well.
ClassFileTransformer
Method Summary | |
---|---|
void |
addTransformer(ClassFileTransformer transformer)
Add a ClassFileTransformer to be applied by this
LoadTimeWeaver . |
ClassLoader |
getInstrumentableClassLoader()
Return a ClassLoader that supports instrumentation
through AspectJ-style load-time weaving based on user-defined
ClassFileTransformers . |
ClassLoader |
getThrowawayClassLoader()
Return a throwaway ClassLoader , enabling classes to be
loaded and inspected without affecting the parent
ClassLoader . |
Method Detail |
---|
void addTransformer(ClassFileTransformer transformer)
ClassFileTransformer
to be applied by this
LoadTimeWeaver
.
transformer
- the ClassFileTransformer
to addClassLoader getInstrumentableClassLoader()
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 getThrowawayClassLoader()
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
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |