摘要: Spring IOC 学习笔记-对象创建过程
正文:
对象创建过程
Resource
(xml
annotation
class
properties/yml
) -> BeanDefinition
-> BeanWrapper
-> Object
Resource
–> BeanDefinition
For Xml
1 | <bean id="user" class="com.itliusir.spring.entity.User" > |
1 |
|
1 | 1. org.springframework.context.support.ClassPathXmlApplicationContext# |
For Annotation
1 |
|
1 |
|
1 | 1. org.springframework.context.annotation.AnnotationConfigApplicationContext# |
BeanDefinition
–> Object
1 | 1. org.springframework.beans.factory.BeanFactory# |
CreateBeanInstance
1 | 1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory# |
PopulateBean
1 | 1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory# |
InitializeBean
1 | 1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory# |