public class BaseAnnotationProcessingService extends Object implements AnnotationProcessingService
AnnotationProcessors and uses them to
process one or more Annotations. This is a standard implementation that should be
sufficient for most purposes.AnnotationProcessingService| Constructor and Description |
|---|
BaseAnnotationProcessingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotationProcessor(AnnotationProcessor annotationProcessor)
Add an
AnnotationProcessor to the service. |
Set<AnnotationProcessor> |
getAnnotationProcessors()
Returns the set of
AnnotationProcessors registered with this service. |
<I extends BaseNature,A extends Annotation> |
processAnnotation(I info,
A annotation)
The processing action of this service.
|
<I extends BaseNature> |
processAnnotations(I info,
Annotation[] annotations)
Calls
AnnotationProcessingService.processAnnotation(BaseNature, Annotation) for each given Annotation. |
public void addAnnotationProcessor(AnnotationProcessor annotationProcessor)
AnnotationProcessor to the service.addAnnotationProcessor in interface AnnotationProcessingServiceannotationProcessor - the AnnotationProcessor to add to this service.addAnnotationProcessor(AnnotationProcessor)public Set<AnnotationProcessor> getAnnotationProcessors()
AnnotationProcessors registered with this service.getAnnotationProcessors in interface AnnotationProcessingServiceAnnotationProcessors registered with this service.getAnnotationProcessors()public <I extends BaseNature> Annotation[] processAnnotations(I info, Annotation[] annotations)
AnnotationProcessingService.processAnnotation(BaseNature, Annotation) for each given Annotation.processAnnotations in interface AnnotationProcessingServiceinfo - the BaseNature (and so its PropertyHolder) that should be filled
with the information readannotations - the annotations to processprocessAnnotations(BaseNature, Annotation[])public <I extends BaseNature,A extends Annotation> boolean processAnnotation(I info, A annotation)
AnnotationProcessor.processAnnotation(BaseNature, Annotation) is returned.processAnnotation in interface AnnotationProcessingServiceinfo - the BaseNature (and so its PropertyHolder) that should be filled
with the information readannotation - the annotation to process(BaseNature,
Annotation)Copyright © 2016. All rights reserved.