org.springframework.context.annotation
Class CommonAnnotationBeanPostProcessor.ResourceElement

java.lang.Object
  extended by org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
      extended by org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.LookupElement
          extended by 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.


Field Summary
protected  boolean shareable
           
 
Fields inherited from class org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.LookupElement
isDefaultName, lookupType, mappedName, name
 
Fields inherited from class org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
isField, member, pd, skip
 
Constructor Summary
CommonAnnotationBeanPostProcessor.ResourceElement(java.lang.reflect.Member member, java.beans.PropertyDescriptor pd)
           
 
Method Summary
protected  java.lang.Object getResourceToInject(java.lang.Object target, java.lang.String requestingBeanName)
          Either this or InjectionMetadata.InjectedElement.inject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues) needs to be overridden.
protected  void initAnnotation(java.lang.reflect.AnnotatedElement ae)
           
 
Methods inherited from class org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.LookupElement
getDependencyDescriptor, getLookupType, getName
 
Methods inherited from class org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
checkPropertySkipping, checkResourceType, equals, getMember, getResourceType, hashCode, inject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

shareable

protected boolean shareable
Constructor Detail

CommonAnnotationBeanPostProcessor.ResourceElement

public CommonAnnotationBeanPostProcessor.ResourceElement(java.lang.reflect.Member member,
                                                         java.beans.PropertyDescriptor pd)
Method Detail

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