BeanFactory.
For example, beans can look up collaborating beans via the factory (Dependency Lookup). Note that most beans will choose to receive references to collaborating beans via corresponding bean properties or constructor arguments (Dependency Injection).
For a list of all bean lifecycle methods, see the
BeanFactory javadocs.
BeanNameAwareBeanClassLoaderAwareInitializingBeanorg.springframework.context.ApplicationContextAwareInvoked after the population of normal bean properties
but before an initialization callback such as
or a custom init-method.
InitializingBean.afterPropertiesSet()
beanFactory owning BeanFactory (never null).
The bean can immediately call methods on the factory.org.springframework.beans.BeansException in case of initialization errorsBeanInitializationException