net.sf.staccatocommons.instrument.handler
Interface ArgumentAnnotationHandler<A extends Annotation>

All Superinterfaces:
AnnotationHandler<A>

public interface ArgumentAnnotationHandler<A extends Annotation>
extends AnnotationHandler<A>

Interface for annotation handlers that can process annotations in method or constructor arguments

Author:
flbulgarelli
See Also:
AnnotationHandler

Method Summary
 void processAnnotatedArgument(A annotation, ArgumentAnnotationContext context)
          Process an annotation discovered by the instrumenter, instrumenting the given context where the annoation was found
 
Methods inherited from interface net.sf.staccatocommons.instrument.handler.AnnotationHandler
getSupportedAnnotationType
 

Method Detail

processAnnotatedArgument

void processAnnotatedArgument(@NonNull
                              A annotation,
                              @NonNull
                              ArgumentAnnotationContext context)
                              throws javassist.CannotCompileException,
                                     javassist.NotFoundException
Process an annotation discovered by the instrumenter, instrumenting the given context where the annoation was found

Parameters:
annotation - the annotation to process
context - the instrumentable context where the annotation was found
Throws:
javassist.CannotCompileException - if any compilation errors occurs
javassist.NotFoundException - if any type needed by instrumentation was not found


Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.