net.sf.staccatocommons.instrument.handler
Interface ConstructorAnnotationHandler<A extends Annotation>
- All Superinterfaces:
- AnnotationHandler<A>
public interface ConstructorAnnotationHandler<A extends Annotation>
- extends AnnotationHandler<A>
- Author:
- flbulgarelli
preProcessAnnotatedConstructor
void preProcessAnnotatedConstructor(@NonNull
A annotation,
@NonNull
ConstructorAnnotationContext context)
throws javassist.CannotCompileException,
javassist.NotFoundException
- Process an
annotation discovered in a constructor by the
instrumenter, instrumenting the given context where the
annotation was found. This message is sent by the instrumenter before
discovering any argument annotation.
- Parameters:
annotation - the annotation to processcontext - the instrumentable context where the annotation was found
- Throws:
javassist.CannotCompileException - if compilation errors occur during instrumentation
javassist.NotFoundException - if any type needed by instrumentation was not found
postProcessAnnotatedConstructor
void postProcessAnnotatedConstructor(@NonNull
A annotation,
@NonNull
ConstructorAnnotationContext context)
throws javassist.CannotCompileException,
javassist.NotFoundException
- Process an
annotation discovered in a constructor by the
instrumenter, instrumenting the given context where the
annotation was found. This message is sent by the instrumenter after
discovering all arguments annotations.
- Parameters:
annotation - the annotation to processcontext - the instrumentable context where the annotation was found
- Throws:
javassist.CannotCompileException - if compilation errors occur during instrumentation
javassist.NotFoundException - if any type needed by instrumentation was not found
Copyright © 2010-2012 Staccatocommons. All Rights Reserved.