org.springframework.context.annotation
Class CommonAnnotationBeanPostProcessor.ResourceElement
java.lang.Object
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.LookupElement
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.ResourceElement
- Enclosing class:
- CommonAnnotationBeanPostProcessor
private class CommonAnnotationBeanPostProcessor.ResourceElement
- extends CommonAnnotationBeanPostProcessor.LookupElement
Class representing injection information about an annotated field
or setter method, supporting the @Resource annotation.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
shareable
protected boolean shareable
CommonAnnotationBeanPostProcessor.ResourceElement
public CommonAnnotationBeanPostProcessor.ResourceElement(java.lang.reflect.Member member,
java.beans.PropertyDescriptor pd)
initAnnotation
protected void initAnnotation(java.lang.reflect.AnnotatedElement ae)
- Specified by:
initAnnotation
in class CommonAnnotationBeanPostProcessor.LookupElement
getResourceToInject
protected java.lang.Object getResourceToInject(java.lang.Object target,
java.lang.String requestingBeanName)
- Description copied from class:
InjectionMetadata.InjectedElement
- Either this or
InjectionMetadata.InjectedElement.inject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues)
needs to be overridden.
- Overrides:
getResourceToInject
in class InjectionMetadata.InjectedElement