Interface AnnotationProcessingService
-
- All Known Subinterfaces:
TargetAwareAnnotationProcessingService
- All Known Implementing Classes:
BaseAnnotationProcessingService,BaseTargetAwareAnnotationProcessingService,JPAClassAnnotationProcessingService,JPAFieldAnnotationProcessingService
public interface AnnotationProcessingServiceAn AnnotationProcessingService handles multipleAnnotationProcessors and uses them to process one or moreAnnotations.- Since:
- 1.3
- Author:
- Alexander Eibner, Peter Schmidt, Joachim Grueneis
- See Also:
AnnotationProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAnnotationProcessor(AnnotationProcessor annotationProcessor)Add anAnnotationProcessorto the service.java.util.Set<AnnotationProcessor>getAnnotationProcessors()Returns the set ofAnnotationProcessors registered with this service.<I extends BaseNature,A extends java.lang.annotation.Annotation>
booleanprocessAnnotation(I info, A annotation)The processing action of this service.<I extends BaseNature>
java.lang.annotation.Annotation[]processAnnotations(I info, java.lang.annotation.Annotation[] annotations)CallsprocessAnnotation(BaseNature, Annotation)for each given Annotation.
-
-
-
Method Detail
-
processAnnotations
<I extends BaseNature> java.lang.annotation.Annotation[] processAnnotations(I info, java.lang.annotation.Annotation[] annotations)
CallsprocessAnnotation(BaseNature, Annotation)for each given Annotation.- Parameters:
info- theBaseNature(and so itsPropertyHolder) that should be filled with the information readannotations- the annotations to process- Returns:
- Annotation[] filled with unprocessed annotations
- See Also:
processAnnotation(BaseNature, Annotation)
-
processAnnotation
<I extends BaseNature,A extends java.lang.annotation.Annotation> boolean processAnnotation(I info, A annotation)
The processing action of this service. If an annotation is given which is not supported by this processor false is returned. Otherwise the Annotations specific processor will (try to) process the Annotation and the result ofAnnotationProcessor.processAnnotation(BaseNature, Annotation)is returned.- Parameters:
info- theBaseNature(and so itsPropertyHolder) that should be filled with the information readannotation- the annotation to process- Returns:
- true, if the annotation was processed, false if not
- See Also:
AnnotationProcessor
-
addAnnotationProcessor
void addAnnotationProcessor(AnnotationProcessor annotationProcessor)
Add anAnnotationProcessorto the service.- Parameters:
annotationProcessor- theAnnotationProcessorto add to this service.
-
getAnnotationProcessors
java.util.Set<AnnotationProcessor> getAnnotationProcessors()
Returns the set ofAnnotationProcessors registered with this service.- Returns:
- A set of
AnnotationProcessors registered with this service.
-
-