| org.springframework.beans.factory.config.AutowireCapableBeanFactory
All known Subclasses: org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory,
Field Summary | |
int | AUTOWIRE_AUTODETECT Constant that indicates determining an appropriate autowire strategy
through introspection of the bean class. | int | AUTOWIRE_BY_NAME Constant that indicates autowiring bean properties by name. | int | AUTOWIRE_BY_TYPE Constant that indicates autowiring bean properties by type. | int | AUTOWIRE_CONSTRUCTOR Constant that indicates autowiring a constructor. | int | AUTOWIRE_NO Constant that indicates no autowiring at all
(other than callbacks such as BeanFactoryAware). |
Method Summary | |
Object | applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) Apply
BeanPostProcessor BeanPostProcessors to the given existing bean
instance, invoking their postProcessAfterInitialization methods. | Object | applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) Apply
BeanPostProcessor BeanPostProcessors to the given existing bean
instance, invoking their postProcessBeforeInitialization methods. | void | applyBeanPropertyValues(Object existingBean, String beanName) Apply the property values of the bean definition with the given name
to the given bean instance. | Object | autowire(Class beanClass, int autowireMode, boolean dependencyCheck) Instantiate a new bean instance of the given class with the specified autowire
strategy. | void | autowireBeanProperties(Object existingBean, int autowireMode, boolean dependencyCheck) Autowire the bean properties of the given bean instance by name or type. | Object | configureBean(Object existingBean, String beanName) Configure the given bean instance: autowiring bean properties, applying
bean property values, applying factory callbacks such as setBeanName
and setBeanFactory , and also applying all bean post processors. | Object | createBean(Class beanClass, int autowireMode, boolean dependencyCheck) Fully create a new bean instance of the given class with the specified
autowire strategy. | Object | initializeBean(Object existingBean, String beanName) Initialize the given bean instance, applying factory callbacks
such as setBeanName and setBeanFactory ,
also applying all bean post processors.
Note that no bean definition of the given name has to exist
in the bean factory. |
applyBeanPostProcessorsAfterInitialization | Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException(Code) | | Apply
BeanPostProcessor BeanPostProcessors to the given existing bean
instance, invoking their postProcessAfterInitialization methods.
The returned bean instance may be a wrapper around the original.
Parameters: existingBean - the new bean instance Parameters: beanName - the name of the bean the bean instance to use, either the original or a wrapped one throws: BeansException - if any post-processing failed See Also: BeanPostProcessor.postProcessAfterInitialization |
applyBeanPostProcessorsBeforeInitialization | Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException(Code) | | Apply
BeanPostProcessor BeanPostProcessors to the given existing bean
instance, invoking their postProcessBeforeInitialization methods.
The returned bean instance may be a wrapper around the original.
Parameters: existingBean - the new bean instance Parameters: beanName - the name of the bean the bean instance to use, either the original or a wrapped one throws: BeansException - if any post-processing failed See Also: BeanPostProcessor.postProcessBeforeInitialization |
configureBean | Object configureBean(Object existingBean, String beanName) throws BeansException(Code) | | Configure the given bean instance: autowiring bean properties, applying
bean property values, applying factory callbacks such as setBeanName
and setBeanFactory , and also applying all bean post processors.
This is effectively a superset of what initializeBean
provides, fully applying the configuration specified by the corresponding
bean definition.
Parameters: existingBean - the existing bean instance Parameters: beanName - the name of the bean, to be passed to it if necessary(a bean definition of that name has to be available) the bean instance to use, either the original or a wrapped one throws: org.springframework.beans.factory.NoSuchBeanDefinitionException - if there is no bean with the given name throws: BeansException - if the initialization failed See Also: AutowireCapableBeanFactory.initializeBean |
initializeBean | Object initializeBean(Object existingBean, String beanName) throws BeansException(Code) | | Initialize the given bean instance, applying factory callbacks
such as setBeanName and setBeanFactory ,
also applying all bean post processors.
Note that no bean definition of the given name has to exist
in the bean factory. The passed-in bean name will simply be used
for callbacks but not checked against the registered bean definitions.
Parameters: existingBean - the existing bean instance Parameters: beanName - the name of the bean, to be passed to it if necessary(only passed to BeanPostProcessor BeanPostProcessors) the bean instance to use, either the original or a wrapped one throws: BeansException - if the initialization failed |
|
|