|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.staccatocommons.instrument.internal.InstrumenterImpl
public class InstrumenterImpl
| Constructor Summary | |
|---|---|
InstrumenterImpl(javassist.ClassPool classPool)
Creates a new InstrumenterImpl |
|
| Method Summary | |
|---|---|
InstrumenterConfiguration |
addAnnotationHanlder(AnnotationHandler handler)
Register an annotation handler to this instrumenter that will be notified to process an annotation each time one of the type returned by AnnotationHandler.getSupportedAnnotationType() is found. |
void |
ensureConfigured()
Ensures that at least a handler has being registered, and the instrumentation mark was set |
void |
instrumentClass(javassist.CtClass clazz)
|
InstrumenterConfiguration |
setInstrumentationMark(InstrumentationMark instrumentationMark)
Sets the instrumentation mark this instrumenter will print in the instrumented classes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstrumenterImpl(javassist.ClassPool classPool)
InstrumenterImpl
classPool - processors - | Method Detail |
|---|
public InstrumenterConfiguration setInstrumentationMark(InstrumentationMark instrumentationMark)
InstrumenterConfigurationInstrumenterConfigurer.configureInstrumenter(InstrumenterConfiguration)
, and should be sent at most once from inside it.
setInstrumentationMark in interface InstrumenterConfigurationinstrumentationMark - the instrumentationMark to set
public InstrumenterConfiguration addAnnotationHanlder(AnnotationHandler handler)
InstrumenterConfigurationAnnotationHandler.getSupportedAnnotationType() is found.
If more than one AnnotationHandler that supports a certain
annotation type is registered, the instrumenter will notify all those
handlers when an annotation of such type is found, in the order they have
being registered.
This message must be sent at least once from inside
InstrumenterConfigurer.configureInstrumenter(InstrumenterConfiguration)
addAnnotationHanlder in interface InstrumenterConfigurationhandler - the handler to register
public void ensureConfigured()
public void instrumentClass(javassist.CtClass clazz)
throws javassist.CannotCompileException,
ClassNotFoundException
instrumentClass in interface Instrumenterclazz -
ClassNotFoundException
javassist.CannotCompileException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||