Package org.apache.cxf.common.injection
Class ResourceInjector
java.lang.Object
org.apache.cxf.common.annotation.AbstractAnnotationVisitor
org.apache.cxf.common.injection.ResourceInjector
- All Implemented Interfaces:
AnnotationVisitor
injects references specified using @Resource annotation
-
Field Summary
Fields inherited from class org.apache.cxf.common.annotation.AbstractAnnotationVisitor
target, targetClass
-
Constructor Summary
ConstructorDescriptionResourceInjector
(ResourceManager resMgr) ResourceInjector
(ResourceManager resMgr, List<ResourceResolver> resolvers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
protected Class<?>
getResourceType
(javax.annotation.Resource res, Field field) making this protected to keep pmd happyvoid
void
void
void
static boolean
processable
(Class<?> cls, Object o) final void
visitClass
(Class<?> clz, Annotation annotation) visit an annotated class.final void
visitField
(Field field, Annotation annotation) visit an annotated field.final void
visitMethod
(Method method, Annotation annotation) visit an annotated method.Methods inherited from class org.apache.cxf.common.annotation.AbstractAnnotationVisitor
addTargetAnnotation, getTarget, getTargetAnnotations, getTargetClass, setTarget, setTarget
-
Constructor Details
-
ResourceInjector
-
ResourceInjector
-
-
Method Details
-
processable
-
inject
-
inject
-
construct
-
construct
-
destroy
-
visitClass
Description copied from interface:AnnotationVisitor
visit an annotated class. Invoked when the class of an object is annotated by one of the specified annotations.visitClass
is called for each of the annotations that matches and for each class.- Specified by:
visitClass
in interfaceAnnotationVisitor
- Overrides:
visitClass
in classAbstractAnnotationVisitor
- Parameters:
clz
- the class with the annotationannotation
- the annotation
-
visitField
Description copied from interface:AnnotationVisitor
visit an annotated field. Invoked when the field of an object is annotated by one of the specified annotations.visitField
is called for each of the annotations that matches and for each field.- Specified by:
visitField
in interfaceAnnotationVisitor
- Overrides:
visitField
in classAbstractAnnotationVisitor
- Parameters:
field
- the annotated fieldannotation
- the annotation
-
visitMethod
Description copied from interface:AnnotationVisitor
visit an annotated method. Invoked when the method of an object is annotated by one of the specified annotations.visitMethod
is called for each of the annotations that matches and for each method.- Specified by:
visitMethod
in interfaceAnnotationVisitor
- Overrides:
visitMethod
in classAbstractAnnotationVisitor
- Parameters:
method
- the annotated fieldxannotation
- the annotation
-
invokePostConstruct
public void invokePostConstruct() -
invokePreDestroy
public void invokePreDestroy() -
getResourceType
making this protected to keep pmd happy
-