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

Method Summary
 void postProcessAnnotatedConstructor(A annotation, ConstructorAnnotationContext context)
          Process an annotation discovered in a constructor by the instrumenter, instrumenting the given context where the annotation was found.
 void preProcessAnnotatedConstructor(A annotation, ConstructorAnnotationContext context)
          Process an annotation discovered in a constructor 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

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 process
context - 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 process
context - 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.