bean生命周期
- 实例化
- setBeanName(实现BeanNameWare接口)
- setBeanFactory(实现BeanFactoryWare接口)
- setApplicationContext(实现ApplicationContextWare接口)
- postProcessBeforeInitialization(实现BeanPostProcessor接口)
- afterPropertiesSet(实现InitializingBean接口)
- init-method(xml配置了init-method方法)
- postProcessAfterInitialization(实现BeanPostProcessor接口)
- destory(实现了disposableBean接口)
- destory-method(xml配置了destory-method方法)