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

All Known Subinterfaces:
ArgumentAnnotationHandler<A>, ClassAnnotationHandler<A>, ConstructorAnnotationHandler<A>, MethodAnnotationHandler<A>
All Known Implementing Classes:
AbstractActivationAnnotationHandler

public interface AnnotationHandler<A extends Annotation>

Superinterface for all annotation handlers.

Although a concrete handler may implement more than one handler interfaces, in order to be capable of processing more than one element type, this interface reinforce that a handler must process a single annotation type

As instrumentation is performed on a single thread, AnnotationHandler s have no restrictions regarding synchronization. In particular, they do not need to be statless nor immutable.

This interface must not be implemented directly by client code. It must implement one of the subinterfaces from this package

Author:
flbulgarelli
See Also:
ArgumentAnnotationHandler, MethodAnnotationHandler, ConstructorAnnotationHandler, ClassAnnotationHandler

Method Summary
 Class<A> getSupportedAnnotationType()
          Answers the annotation this processor can process
 

Method Detail

getSupportedAnnotationType

@NonNull
Class<A> getSupportedAnnotationType()
Answers the annotation this processor can process

Returns:
an annotation type


Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.