嘉兴网站关键词排名,网页模板的作用,自己怎么注册公司网址,网站建设新闻资讯一、概述 Spring IOC的扩展点是指IOC在加载过程中#xff0c;如何对即将要创建的bean进行扩展。
二、扩展点
2.1、实现BeanDefinitionRegistryPostProcessor 调用invokeBeanFactoryPostProcessors时#xff0c;通过实现BeanDefinitionRegistryPostProcessor接口进行扩展。 …一、概述 Spring IOC的扩展点是指IOC在加载过程中如何对即将要创建的bean进行扩展。
二、扩展点
2.1、实现BeanDefinitionRegistryPostProcessor 调用invokeBeanFactoryPostProcessors时通过实现BeanDefinitionRegistryPostProcessor接口进行扩展。
2.2、实现BeanFactoryPostProcessor 调用invokeBeanFactoryPostProcessors时通过实现BeanFactoryPostProcessor接口进行扩展。
2.3、初始化阶段调用xxxAware接口
2.4、生命周期回调时进行扩展
a、PostConstruct PreDestroy
b、实现接口 InitializingBean, DisposableBean的方式
c、Bean(initMethod init,destroyMethod destroy)的方式
2.5、案例代码
spring11-interview