AnnotationProcessingService
BaseTargetAwareAnnotationProcessingService
public class BaseAnnotationProcessingService extends java.lang.Object implements AnnotationProcessingService
AnnotationProcessor
s
and uses them to process one or more Annotation
s. This is a standard
implementation that should be sufficient for most purposes.AnnotationProcessingService
Constructor | Description |
---|---|
BaseAnnotationProcessingService() |
Modifier and Type | Method | Description |
---|---|---|
void |
addAnnotationProcessor(AnnotationProcessor annotationProcessor) |
Add an
AnnotationProcessor to the service. |
java.util.Set<AnnotationProcessor> |
getAnnotationProcessors() |
Returns the set of
AnnotationProcessor s registered with
this service. |
<I extends BaseNature,A extends java.lang.annotation.Annotation> |
processAnnotation(I info,
A annotation) |
The processing action of this service.
|
<I extends BaseNature> |
processAnnotations(I info,
java.lang.annotation.Annotation[] annotations) |
Calls
AnnotationProcessingService.processAnnotation(BaseNature, Annotation) for each given
Annotation. |
public void addAnnotationProcessor(AnnotationProcessor annotationProcessor)
AnnotationProcessor
to the service.addAnnotationProcessor
in interface AnnotationProcessingService
annotationProcessor
- the AnnotationProcessor
to add to this service.public java.util.Set<AnnotationProcessor> getAnnotationProcessors()
AnnotationProcessor
s registered with
this service.getAnnotationProcessors
in interface AnnotationProcessingService
AnnotationProcessor
s registered with this service.public <I extends BaseNature> java.lang.annotation.Annotation[] processAnnotations(I info, java.lang.annotation.Annotation[] annotations)
AnnotationProcessingService.processAnnotation(BaseNature, Annotation)
for each given
Annotation.processAnnotations
in interface AnnotationProcessingService
info
- the BaseNature
(and so its PropertyHolder
)
that should be filled with the information readannotations
- the annotations to processAnnotationProcessingService.processAnnotation(BaseNature, Annotation)
public <I extends BaseNature,A extends java.lang.annotation.Annotation> boolean processAnnotation(I info, A annotation)
AnnotationProcessor.processAnnotation(BaseNature, Annotation)
is
returned.processAnnotation
in interface AnnotationProcessingService
info
- the BaseNature
(and so its PropertyHolder
)
that should be filled with the information readannotation
- the annotation to process(BaseNature, Annotation)
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com