@Target(value=TYPE) public @interface AnnotationProcessor
AnnotationProcessor annotation is used in conjunction with DynamicActive. 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 by
AnnotationProcessorProvider.
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, so
AnnotationProcessorProvider can pick it up.
DynamicActive,
AnnotationProcessorProvider,
AbstractDynamicAnnotationProcessor| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends Annotation>[] |
value
Dynamic active annotations which should be processed by the annotated processor.
|
public abstract Class<? extends Annotation>[] value
DynamicActiveCopyright © 2018–2020 b+m Informatik AG. All rights reserved.