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

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

private class AutowiredAnnotationBeanPostProcessor.AutowiredMethodElement
extends InjectionMetadata.InjectedElement

Class representing injection information about an annotated method.


Field Summary
private  boolean cached
           
private  java.lang.Object[] cachedMethodArguments
           
private  boolean required
           
 
Fields inherited from class org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
isField, member, pd, skip
 
Constructor Summary
AutowiredAnnotationBeanPostProcessor.AutowiredMethodElement(java.lang.reflect.Method method, boolean required, java.beans.PropertyDescriptor pd)
           
 
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.
private  java.lang.Object[] resolveCachedArguments(java.lang.String beanName)
           
 
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

cachedMethodArguments

private volatile java.lang.Object[] cachedMethodArguments
Constructor Detail

AutowiredAnnotationBeanPostProcessor.AutowiredMethodElement

public AutowiredAnnotationBeanPostProcessor.AutowiredMethodElement(java.lang.reflect.Method method,
                                                                   boolean required,
                                                                   java.beans.PropertyDescriptor pd)
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

resolveCachedArguments

private java.lang.Object[] resolveCachedArguments(java.lang.String beanName)