|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.util.weave.j2se6.DCRWeaver
public final class DCRWeaver
Weaver that uses Java 6 dynamic class retransformation.
| Nested Class Summary | |
|---|---|
static interface |
DCRWeaver.ClassFileTransformerFactory
Factory that generates ClassFileTransformers which perform
the weaving. |
| Nested classes/interfaces inherited from interface net.grinder.util.weave.Weaver |
|---|
Weaver.TargetSource |
| Constructor Summary | |
|---|---|
DCRWeaver(DCRWeaver.ClassFileTransformerFactory transformerFactory,
Instrumentation instrumentation)
Constructor. |
|
| Method Summary | |
|---|---|
void |
applyChanges()
Apply pending weaving that has been requested with Weaver.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DCRWeaver(DCRWeaver.ClassFileTransformerFactory transformerFactory,
Instrumentation instrumentation)
transformerFactory - Used to create the transformer.instrumentation - Access to the JVM instrumentation.| Method Detail |
|---|
public 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 Weaver.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
Weaver.applyChanges() is called.
weave in interface Weaverconstructor - The constructor.
public 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 Weaver.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
Weaver.applyChanges() is called.
weave in interface Weavermethod - The method.targetSource - Which object should be passed as the target to the advice.
WeavingException - If the targetSource is incompatible with the
method.
public void applyChanges()
throws WeavingException
Weaver.weave(java.lang.reflect.Constructor>).
applyChanges in interface WeaverWeavingException - A problem occurred with the weaving.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||