Spring IOC
Java · 7 notes
- 1. Create the Spring Containerhistorical
1. Code to analyze 2. Create ApplicationContext and trace the refresh process
- 2. Call BeanFactoryPostProcessor's postProcess Methodhistorical
1. Code to study 2. Process BeanDefinitionRegistryPostProcessors 3. Process BeanFactoryPostProcessors
- 3. Register BeanPostProcessorhistorical
1. Code to study 2. Obtain BeanPostProcessors 3. Classify them 4-7. Register each group
- Spring IoC Source: Instantiating All Non-Lazy Singleton Beanshistorical
Source tracing of finishBeanFactoryInitialization and preInstantiateSingletons through getBean, singleton lookup and creation, BeanPostProcessors, bean instantiation, property population, initialization, proxy creation, and destruction registration.