IOC创建流程.xmind

时间:2022-09-10 11:20:32
【文件属性】:
文件名称:IOC创建流程.xmind
文件大小:246KB
文件格式:XMIND
更新时间:2022-09-10 11:20:32
spring 1. Spring容器在启动的时候,先会保存所有注册进来的Bean的定义信息; 1. xml注册bean; 2. 注解注册Bean;@Service、@Component、@Bean、xxx 1. Spring容器会合适的时机创建这些Bean 1. 用到这个bean的时候;利用getBean创建bean;创建好以后保存在容器中; 2. 统一创建剩下所有的bean的时候;finishBeanFactoryInitialization(); 1. 后置处理器;BeanPostProcessor - 每一个bean创建完成,都会使用各种后置处理器进行处理;来增强bean的功能; - AutowiredAnnotationBeanPostProcessor:处理自动注入 - AnnotationAwareAspectJAutoProxyCreator:来做AOP功能; - xxx.... - 增强的功能注解: AsyncAnnotationBeanPostProcessor - .... 2. 事件驱动模型; - ApplicationListener;事件监听; - ApplicationEventMulticaster;事件派发:

网友评论