Package org.apache.cxf.common.annotation
Interface AnnotationVisitor
- 
- All Known Implementing Classes:
- AbstractAnnotationVisitor,- ResourceInjector
 
 public interface AnnotationVisitorVisits the annotated elements of an object
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Class<? extends Annotation>>getTargetAnnotations()return the list of annotations this visitor wants to be informed about.voidsetTarget(Object target)set the target object being visited.voidvisitClass(Class<?> clz, Annotation annotation)visit an annotated class.voidvisitField(Field field, Annotation annotation)visit an annotated field.voidvisitMethod(Method method, Annotation annotation)visit an annotated method.
 
- 
- 
- 
Method Detail- 
setTargetvoid setTarget(Object target) set the target object being visited. Invoked before any of the visit methods.- Parameters:
- target- the target object
- See Also:
- AnnotationProcessor
 
 - 
getTargetAnnotationsList<Class<? extends Annotation>> getTargetAnnotations() return the list of annotations this visitor wants to be informed about.- Returns:
- list of annotation types to be informed about
 
 - 
visitClassvoid visitClass(Class<?> clz, Annotation annotation) visit an annotated class. Invoked when the class of an object is annotated by one of the specified annotations.visitClassis called for each of the annotations that matches and for each class.- Parameters:
- clz- the class with the annotation
- annotation- the annotation
 
 - 
visitFieldvoid visitField(Field field, Annotation annotation) visit an annotated field. Invoked when the field of an object is annotated by one of the specified annotations.visitFieldis called for each of the annotations that matches and for each field.- Parameters:
- field- the annotated field
- annotation- the annotation
 
 - 
visitMethodvoid visitMethod(Method method, Annotation annotation) visit an annotated method. Invoked when the method of an object is annotated by one of the specified annotations.visitMethodis called for each of the annotations that matches and for each method.- Parameters:
- method- the annotated fieldx
- annotation- the annotation
 
 
- 
 
-