Annotation Type AnnotationProcessor
-
@Target(TYPE) public @interface AnnotationProcessor
TheAnnotationProcessor
annotation is used in conjunction withDynamicActive
. It is possible to specify the dynamic active annotation(s) which should be processed by the annotated annotation processor.It is possible to use this annotation in conjunction with
Order
to define the precedence of the processor if multiple processors feel responsible for processing the annotation. The processor with the highest order is chosen byAnnotationProcessorProvider
.Internally for each dynamic active annotation a subclass of
AbstractDynamicAnnotationProcessor
is generated which provides a providerKey based on the annotation's type name. Moreover a .processor file is generated to META-INF, soAnnotationProcessorProvider
can pick it up.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
- See Also:
DynamicActive
,AnnotationProcessorProvider
,AbstractDynamicAnnotationProcessor
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends java.lang.annotation.Annotation>[]
value
Dynamic active annotations which should be processed by the annotated processor.
-
-
-
Element Detail
-
value
java.lang.Class<? extends java.lang.annotation.Annotation>[] value
Dynamic active annotations which should be processed by the annotated processor. The given annotations have to be annotated byDynamicActive
- Returns:
- the annotations which should be handled by the annotated annotation processor
-
-