|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.core.annotationprocessing.BaseAnnotationProcessingService
org.castor.core.annotationprocessing.BaseTargetAwareAnnotationProcessingService
public class BaseTargetAwareAnnotationProcessingService
Base implementation class to be used for implementing AnnotationProcessingService
s.
AnnotationProcessingService
Constructor Summary | |
---|---|
BaseTargetAwareAnnotationProcessingService()
|
Method Summary | ||
---|---|---|
void |
addAnnotationProcessor(TargetAwareAnnotationProcessor taAnnotationProcessor)
Add an TargetAwareAnnotationProcessor to the service. |
|
java.util.Set<AnnotationProcessor> |
getAllAnnotationProcessors()
Returns the set of AnnotationProcessor s and
TargetAwareAnnotationProcessor s registered with this service. |
|
java.util.Set<TargetAwareAnnotationProcessor> |
getTargetAwareAnnotationProcessors()
Returns the set of TargetAwareAnnotationProcessor s registered
with this service. |
|
|
processAnnotation(I info,
A annotation)
This method acts like it's super method, but also tries to process the annotation with the TargetAwareAnnotationProcessor s. |
|
|
processAnnotation(I info,
A annotation,
java.lang.reflect.AnnotatedElement target)
The processing action of this service. |
|
|
processAnnotations(I info,
java.lang.annotation.Annotation[] annotations)
This method acts like it's super method, but also tries to process the annotations with the TargetAwareAnnotationProcessor s. |
|
|
processAnnotations(I info,
java.lang.annotation.Annotation[] annotations,
java.lang.reflect.AnnotatedElement target)
Calls AnnotationProcessingService.processAnnotation(BaseNature, Annotation) for each given
Annotation. |
Methods inherited from class org.castor.core.annotationprocessing.BaseAnnotationProcessingService |
---|
addAnnotationProcessor, getAnnotationProcessors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.castor.core.annotationprocessing.AnnotationProcessingService |
---|
addAnnotationProcessor, getAnnotationProcessors |
Constructor Detail |
---|
public BaseTargetAwareAnnotationProcessingService()
Method Detail |
---|
public void addAnnotationProcessor(TargetAwareAnnotationProcessor taAnnotationProcessor)
TargetAwareAnnotationProcessor
to the service.
addAnnotationProcessor
in interface TargetAwareAnnotationProcessingService
taAnnotationProcessor
- the TargetAwareAnnotationProcessor
to add to this
service.addAnnotationProcessor(AnnotationProcessor)
public java.util.Set<AnnotationProcessor> getAllAnnotationProcessors()
AnnotationProcessor
s and
TargetAwareAnnotationProcessor
s registered with this service.
getAllAnnotationProcessors
in interface TargetAwareAnnotationProcessingService
AnnotationProcessor
s registered with this
service.TargetAwareAnnotationProcessingService.getAllAnnotationProcessors()
public java.util.Set<TargetAwareAnnotationProcessor> getTargetAwareAnnotationProcessors()
TargetAwareAnnotationProcessor
s registered
with this service.
getTargetAwareAnnotationProcessors
in interface TargetAwareAnnotationProcessingService
TargetAwareAnnotationProcessor
s registered with
this service.TargetAwareAnnotationProcessingService.getTargetAwareAnnotationProcessors()
public <I extends BaseNature,A extends java.lang.annotation.Annotation> boolean processAnnotation(I info, A annotation, java.lang.reflect.AnnotatedElement target) throws AnnotationTargetException
TargetAwareAnnotationProcessor.processAnnotation(BaseNature, Annotation, AnnotatedElement)
is returned.
processAnnotation
in interface TargetAwareAnnotationProcessingService
info
- the BaseNature
(and so its PropertyHolder
)
that should be filled with the information readannotation
- the annotation to processtarget
- the target (AnnotatedElement
) of the given annotation
AnnotationTargetException
- if an annotation is used in a context that is not valid.TargetAwareAnnotationProcessingService.processAnnotation(org.castor.core.nature.BaseNature,
java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement)
public <I extends BaseNature> java.lang.annotation.Annotation[] processAnnotations(I info, java.lang.annotation.Annotation[] annotations, java.lang.reflect.AnnotatedElement target) throws AnnotationTargetException
AnnotationProcessingService.processAnnotation(BaseNature, Annotation)
for each given
Annotation.
processAnnotations
in interface TargetAwareAnnotationProcessingService
info
- the BaseNature
(and so its PropertyHolder
)
that should be filled with the information readannotations
- the annotations to processtarget
- the target (AnnotatedElement
) of the given annotation
AnnotationTargetException
- if an annotation is used in a context that is not valid.TargetAwareAnnotationProcessingService.processAnnotations(org.castor.core.nature.BaseNature,
java.lang.annotation.Annotation[],
java.lang.reflect.AnnotatedElement)
public <I extends BaseNature,A extends java.lang.annotation.Annotation> boolean processAnnotation(I info, A annotation)
TargetAwareAnnotationProcessor
s.
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 of
AnnotationProcessor.processAnnotation(BaseNature, Annotation)
is
returned.
processAnnotation
in interface AnnotationProcessingService
processAnnotation
in class BaseAnnotationProcessingService
info
- the BaseNature
(and so its PropertyHolder
)
that should be filled with the information readannotation
- the annotation to process
BaseAnnotationProcessingService.processAnnotation(org.castor.core.nature.BaseNature,
java.lang.annotation.Annotation)
public <I extends BaseNature> java.lang.annotation.Annotation[] processAnnotations(I info, java.lang.annotation.Annotation[] annotations)
TargetAwareAnnotationProcessor
s.
Calls AnnotationProcessingService.processAnnotation(BaseNature, Annotation)
for each given
Annotation.
processAnnotations
in interface AnnotationProcessingService
processAnnotations
in class BaseAnnotationProcessingService
info
- the BaseNature
(and so its PropertyHolder
)
that should be filled with the information readannotations
- the annotations to process
org.castor.core.annotationprocessing.BaseAnnotationProcessingService#processAnnotations(org.castor.core.nature.BaseNature,
java.lang.annotation.Annotation)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |