org.springframework.beans.factory.annotation
Class AutowiredAnnotationBeanPostProcessor.AutowiredFieldElement

java.lang.Object
  extended by org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
      extended by org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.AutowiredFieldElement
Enclosing class:
AutowiredAnnotationBeanPostProcessor

private class AutowiredAnnotationBeanPostProcessor.AutowiredFieldElement
extends InjectionMetadata.InjectedElement

Class representing injection information about an annotated field.


Field Summary
private  boolean cached
           
private  java.lang.Object cachedFieldValue
           
private  boolean required
           
 
Fields inherited from class org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
isField, member, pd, skip
 
Constructor Summary
AutowiredAnnotationBeanPostProcessor.AutowiredFieldElement(java.lang.reflect.Field field, boolean required)
           
 
Method Summary
protected  void inject(java.lang.Object bean, java.lang.String beanName, PropertyValues pvs)
          Either this or InjectionMetadata.InjectedElement.getResourceToInject(java.lang.Object, java.lang.String) needs to be overridden.
 
Methods inherited from class org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
checkPropertySkipping, checkResourceType, equals, getMember, getResourceToInject, getResourceType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

required

private final boolean required

cached

private volatile boolean cached

cachedFieldValue

private volatile java.lang.Object cachedFieldValue
Constructor Detail

AutowiredAnnotationBeanPostProcessor.AutowiredFieldElement

public AutowiredAnnotationBeanPostProcessor.AutowiredFieldElement(java.lang.reflect.Field field,
                                                                  boolean required)
Method Detail

inject

protected void inject(java.lang.Object bean,
                      java.lang.String beanName,
                      PropertyValues pvs)
               throws java.lang.Throwable
Description copied from class: InjectionMetadata.InjectedElement
Either this or InjectionMetadata.InjectedElement.getResourceToInject(java.lang.Object, java.lang.String) needs to be overridden.

Overrides:
inject in class InjectionMetadata.InjectedElement
Throws:
java.lang.Throwable