Set Bean Name - If the bean implements BeanNameAware interface, spring passes the bean's id to setBeanName() method.
Set Bean factory - If Bean implements BeanFactoryAware interface, spring passes the beanfactory to setBeanFactory() method.
Pre Initialization - 也叫 postprocess. Spring 調(diào)用 postProcesserBeforeInitialization() 方法.
Initialize beans - If the bean implements IntializingBean,its afterPropertySet() method is called. If the bean has init method declaration, the specified initialization method is called.
Post Initialization - 調(diào)用 postProcessAfterInitialization() 方法
Ready to use - 現(xiàn)在可以用它們了.
Destroy - If the bean implements DisposableBean , it will call the destroy() method .
更多建議: