|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Weaver
Something that can instrument classes.
| Nested Class Summary | |
|---|---|
static class |
Weaver.TargetSource
Source of the target object that the weaving will pass on to the advice. |
| Method Summary | |
|---|---|
void |
applyChanges()
Apply pending weaving that has been requested with weave(java.lang.reflect.Constructor>). |
String |
weave(Constructor<?> constructor)
Queue the given constructor for weaving, and return a unique
identifier that can be used by the advice to refer to the constructor
pointcut. |
String |
weave(Method method,
Weaver.TargetSource targetSource)
Queue the given method for weaving, and return a unique identifier
that can be used by the advice to refer to the method pointcut. |
| Method Detail |
|---|
String weave(Constructor<?> constructor)
constructor for weaving, and return a unique
identifier that can be used by the advice to refer to the constructor
pointcut.
Once weave(java.lang.reflect.Constructor>) has been called for a constructor, subsequent calls are
no-ops that will return the identifier generated for the original call.
The instrumentation will not be applied to the code until
applyChanges() is called.
constructor - The constructor.
String weave(Method method,
Weaver.TargetSource targetSource)
throws WeavingException
method for weaving, and return a unique identifier
that can be used by the advice to refer to the method pointcut.
Once weave(java.lang.reflect.Constructor>) has been called for a method, subsequent calls are
no-ops that will return the identifier generated for the original call.
The instrumentation will not be applied to the code until
applyChanges() is called.
method - The method.targetSource - Which object should be passed as the target to the advice.
WeavingException - If the targetSource is incompatible with the
method.
void applyChanges()
throws WeavingException
weave(java.lang.reflect.Constructor>).
WeavingException - A problem occurred with the weaving.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||