org.springframework.beans.factory.config

Interface AutowireCapableBeanFactory

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int AUTOWIRE_AUTODETECT
      Deprecated. 
      as of Spring 3.0: If you are using mixed autowiring strategies, prefer annotation-based autowiring for clearer demarcation of autowiring needs.
      static int AUTOWIRE_BY_NAME
      Constant that indicates autowiring bean properties by name (applying to all bean property setters).
      static int AUTOWIRE_BY_TYPE
      Constant that indicates autowiring bean properties by type (applying to all bean property setters).
      static int AUTOWIRE_CONSTRUCTOR
      Constant that indicates autowiring the greediest constructor that can be satisfied (involves resolving the appropriate constructor).
      static int AUTOWIRE_NO
      Constant that indicates no externally defined autowiring.
      static java.lang.String ORIGINAL_INSTANCE_SUFFIX
      Suffix for the "original instance" convention when initializing an existing bean instance: to be appended to the fully-qualified bean class name, e.g.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Object applyBeanPostProcessorsAfterInitialization(java.lang.Object existingBean, java.lang.String beanName)
      Apply BeanPostProcessors to the given existing bean instance, invoking their postProcessAfterInitialization methods.
      java.lang.Object applyBeanPostProcessorsBeforeInitialization(java.lang.Object existingBean, java.lang.String beanName)
      Apply BeanPostProcessors to the given existing bean instance, invoking their postProcessBeforeInitialization methods.
      void applyBeanPropertyValues(java.lang.Object existingBean, java.lang.String beanName)
      Apply the property values of the bean definition with the given name to the given bean instance.
      java.lang.Object autowire(java.lang.Class<?> beanClass, int autowireMode, boolean dependencyCheck)
      Instantiate a new bean instance of the given class with the specified autowire strategy.
      void autowireBean(java.lang.Object existingBean)
      Populate the given bean instance through applying after-instantiation callbacks and bean property post-processing (e.g.
      void autowireBeanProperties(java.lang.Object existingBean, int autowireMode, boolean dependencyCheck)
      Autowire the bean properties of the given bean instance by name or type.
      java.lang.Object configureBean(java.lang.Object existingBean, java.lang.String beanName)
      Configure the given raw bean: autowiring bean properties, applying bean property values, applying factory callbacks such as setBeanName and setBeanFactory, and also applying all bean post processors (including ones which might wrap the given raw bean).
      java.lang.Object createBean(java.lang.Class<?> beanClass, int autowireMode, boolean dependencyCheck)
      Fully create a new bean instance of the given class with the specified autowire strategy.
      <T> T createBean(java.lang.Class<T> beanClass)
      Fully create a new bean instance of the given class.
      void destroyBean(java.lang.Object existingBean)
      Destroy the given bean instance (typically coming from createBean(java.lang.Class<T>)), applying the DisposableBean contract as well as registered DestructionAwareBeanPostProcessors.
      java.lang.Object initializeBean(java.lang.Object existingBean, java.lang.String beanName)
      Initialize the given raw bean, applying factory callbacks such as setBeanName and setBeanFactory, also applying all bean post processors (including ones which might wrap the given raw bean).
      java.lang.Object resolveDependency(DependencyDescriptor descriptor, java.lang.String requestingBeanName)
      Resolve the specified dependency against the beans defined in this factory.
      java.lang.Object resolveDependency(DependencyDescriptor descriptor, java.lang.String requestingBeanName, java.util.Set<java.lang.String> autowiredBeanNames, TypeConverter typeConverter)
      Resolve the specified dependency against the beans defined in this factory.
      <T> NamedBeanHolder<T> resolveNamedBean(java.lang.Class<T> requiredType)
      Resolve the bean instance that uniquely matches the given object type, if any, including its bean name.