- 构造方法
- BeanPostProcessor.postProcessBeforeInitialization()
- @PostConstruct
- InitializingBean.afterPropertiesSet()
- init-method
- BeanPostProcessor.postProcessAfterInitialization()
- @PreDestroy
- DisposableBean.destroy()
- destroy-method
- 构造方法
- Setter方法
- BeanNameAware.setBeanName()
- BeanFactoryAware.setBeanFactory()
- ApplicationContextAware.setApplicationContext()
- 调用BeanPostProcessor的预先初始化方法,如下:
BeanPostProcessor1.postProcessBeforeInitialization
BeanPostProcessor2.postProcessBeforeInitialization
BeanPostProcessor3.postProcessBeforeInitialization
… - @PostConstruct
- InitializingBean.afterPropertiesSet()
- init-method
- 调用BeanPostProcessor的后初始化方法,如下:
BeanPostProcessor1.postProcessAfterInitialization
BeanPostProcessor2.postProcessAfterInitialization
BeanPostProcessor3.postProcessAfterInitialization
…
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)