public abstract class AbstractAnnotationProcessor<A extends java.lang.annotation.Annotation> extends java.lang.Object implements AnnotationProcessor<A>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAnnotationProcessor(java.lang.Class<A> type)
Constructor binding the annotation type.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<A> |
getType()
Returns the type of annotation this processor handles.
|
void |
visitConstructor(A annotation,
java.lang.reflect.Constructor<?> constructor,
java.lang.Class<?> implClass,
org.fabric3.api.model.type.java.InjectingComponentType componentType,
IntrospectionContext context)
Visit an annotation on a constructor declaration.
|
void |
visitConstructorParameter(A annotation,
java.lang.reflect.Constructor<?> constructor,
int index,
java.lang.Class<?> implClass,
org.fabric3.api.model.type.java.InjectingComponentType componentType,
IntrospectionContext context)
Visit an annotation on a constructor parameter declaration.
|
void |
visitField(A annotation,
java.lang.reflect.Field field,
java.lang.Class<?> implClass,
org.fabric3.api.model.type.java.InjectingComponentType componentType,
IntrospectionContext context)
Visit an annotation on a field declaration.
|
void |
visitMethod(A annotation,
java.lang.reflect.Method method,
java.lang.Class<?> implClass,
org.fabric3.api.model.type.java.InjectingComponentType componentType,
IntrospectionContext context)
Visit an annotation on a method declaration.
|
void |
visitMethodParameter(A annotation,
java.lang.reflect.Method method,
int index,
java.lang.Class<?> implClass,
org.fabric3.api.model.type.java.InjectingComponentType componentType,
IntrospectionContext context)
Visit an annotation on a method parameter declaration.
|
void |
visitType(A annotation,
java.lang.Class<?> type,
org.fabric3.api.model.type.java.InjectingComponentType componentType,
IntrospectionContext context)
Visit an annotation on a class or interface declaration.
|
protected AbstractAnnotationProcessor(java.lang.Class<A> type)
type - the annotation typepublic java.lang.Class<A> getType()
AnnotationProcessorgetType in interface AnnotationProcessor<A extends java.lang.annotation.Annotation>public void visitType(A annotation, java.lang.Class<?> type, org.fabric3.api.model.type.java.InjectingComponentType componentType, IntrospectionContext context)
AnnotationProcessorvisitType in interface AnnotationProcessor<A extends java.lang.annotation.Annotation>annotation - the annotationtype - the class or interfacecomponentType - the implementation component type being introspectedcontext - the current introspection contextpublic void visitField(A annotation, java.lang.reflect.Field field, java.lang.Class<?> implClass, org.fabric3.api.model.type.java.InjectingComponentType componentType, IntrospectionContext context)
AnnotationProcessorvisitField in interface AnnotationProcessor<A extends java.lang.annotation.Annotation>annotation - the annotationfield - the fieldimplClass - the component implementation class. This may be different than the declaring field class.componentType - the implementation component type being introspectedcontext - the current introspection contextpublic void visitMethod(A annotation, java.lang.reflect.Method method, java.lang.Class<?> implClass, org.fabric3.api.model.type.java.InjectingComponentType componentType, IntrospectionContext context)
AnnotationProcessorvisitMethod in interface AnnotationProcessor<A extends java.lang.annotation.Annotation>annotation - the annotationmethod - the method declarationimplClass - the component implementation class. This may be different than the declaring method class.componentType - the implementation component type being introspectedcontext - the current introspection contextpublic void visitMethodParameter(A annotation, java.lang.reflect.Method method, int index, java.lang.Class<?> implClass, org.fabric3.api.model.type.java.InjectingComponentType componentType, IntrospectionContext context)
AnnotationProcessorvisitMethodParameter in interface AnnotationProcessor<A extends java.lang.annotation.Annotation>annotation - the annotationmethod - the method declarationindex - the index of the method parameterimplClass - the component implementation class. This may be different than the declaring method class.componentType - the implementation component type being introspectedcontext - the current introspection contextpublic void visitConstructor(A annotation, java.lang.reflect.Constructor<?> constructor, java.lang.Class<?> implClass, org.fabric3.api.model.type.java.InjectingComponentType componentType, IntrospectionContext context)
AnnotationProcessorvisitConstructor in interface AnnotationProcessor<A extends java.lang.annotation.Annotation>annotation - the annotationconstructor - the constructorimplClass - the component implementation class.componentType - the implementation component type being introspectedcontext - the current introspection contextpublic void visitConstructorParameter(A annotation, java.lang.reflect.Constructor<?> constructor, int index, java.lang.Class<?> implClass, org.fabric3.api.model.type.java.InjectingComponentType componentType, IntrospectionContext context)
AnnotationProcessorvisitConstructorParameter in interface AnnotationProcessor<A extends java.lang.annotation.Annotation>annotation - the annotationconstructor - the constructorindex - the index of the constructor parameterimplClass - the component implementation class.componentType - the implementation component type being introspectedcontext - the current introspection context