Package org.apache.cxf.common.annotation
Interface AnnotationVisitor
- All Known Implementing Classes:
- AbstractAnnotationVisitor,- ResourceInjector
public interface AnnotationVisitor
Visits the annotated elements of an object
- 
Method SummaryModifier and TypeMethodDescriptionList<Class<? extends Annotation>>return the list of annotations this visitor wants to be informed about.voidset 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 Details- 
setTargetset the target object being visited. Invoked before any of the visit methods.- Parameters:
- target- the target object
- See Also:
 
- 
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
 
- 
visitClassvisit 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
 
- 
visitFieldvisit 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
 
- 
visitMethodvisit 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
 
 
-