|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A - the annotation type to handlepublic interface ClassAnnotationHandler<A extends Annotation>
Interface for annotation handlers that can process annotations in methods.
| Method Summary | |
|---|---|
void |
postProcessAnnotatedClass(A annotation,
ClassAnnotationContext context)
Process an annotation discovered in a clazz by the
instrumenter, instrumenting the given context where the
annotation was found. |
void |
preProcessAnnotatedClass(A annotation,
ClassAnnotationContext context)
Process an annotation discovered in a clazz by the
instrumenter, instrumenting the given context where the
annotation was found. |
| Methods inherited from interface net.sf.staccatocommons.instrument.handler.AnnotationHandler |
|---|
getSupportedAnnotationType |
| Method Detail |
|---|
void preProcessAnnotatedClass(@NonNull
A annotation,
@NonNull
ClassAnnotationContext context)
throws javassist.CannotCompileException,
javassist.NotFoundException
annotation discovered in a clazz by the
instrumenter, instrumenting the given context where the
annotation was found. This message is sent by the instrumenter before
discovering any method or constructor annotation.
annotation - the annotation to processcontext - the instrumentable context where the annotation was found
javassist.CannotCompileException - if compilation errors occur during instrumentation
javassist.NotFoundException - if any type needed by instrumentation was not found
void postProcessAnnotatedClass(@NonNull
A annotation,
@NonNull
ClassAnnotationContext context)
throws javassist.CannotCompileException,
javassist.NotFoundException
annotation discovered in a clazz by the
instrumenter, instrumenting the given context where the
annotation was found. This message is sent by the instrumenter after
discovering all methods and constructors annotations.
annotation - the annotation to processcontext - the instrumentable context where the annotation was found
javassist.CannotCompileException - if compilation errors occur during instrumentation
javassist.NotFoundException - if any type needed by instrumentation was not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||