Package org.apache.cxf.common.annotation
Class AbstractAnnotationVisitor
java.lang.Object
org.apache.cxf.common.annotation.AbstractAnnotationVisitor
- All Implemented Interfaces:
AnnotationVisitor
- Direct Known Subclasses:
ResourceInjector
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAnnotationVisitor(Class<? extends Annotation> ann) protectedAbstractAnnotationVisitor(List<Class<? extends Annotation>> ann) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddTargetAnnotation(Class<? extends Annotation> ann) List<Class<? extends Annotation>>return the list of annotations this visitor wants to be informed about.Class<?>voidset the target object being visited.voidvoidvisitClass(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.
-
Field Details
-
target
-
targetClass
-
-
Constructor Details
-
AbstractAnnotationVisitor
-
AbstractAnnotationVisitor
-
-
Method Details
-
addTargetAnnotation
-
visitClass
Description copied from interface:AnnotationVisitorvisit 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.- Specified by:
visitClassin interfaceAnnotationVisitor- Parameters:
clz- the class with the annotationannotation- the annotation
-
getTargetAnnotations
Description copied from interface:AnnotationVisitorreturn the list of annotations this visitor wants to be informed about.- Specified by:
getTargetAnnotationsin interfaceAnnotationVisitor- Returns:
- list of annotation types to be informed about
-
visitField
Description copied from interface:AnnotationVisitorvisit 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.- Specified by:
visitFieldin interfaceAnnotationVisitor- Parameters:
field- the annotated fieldannotation- the annotation
-
visitMethod
Description copied from interface:AnnotationVisitorvisit 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.- Specified by:
visitMethodin interfaceAnnotationVisitor- Parameters:
method- the annotated fieldxannotation- the annotation
-
setTarget
Description copied from interface:AnnotationVisitorset the target object being visited. Invoked before any of the visit methods.- Specified by:
setTargetin interfaceAnnotationVisitor- Parameters:
object- the target object- See Also:
-
setTarget
-
getTarget
-
getTargetClass
-