refresh() |
更新配置 |
ClassPathXmlApplicationContext.ClassPathXmlApplicationContext() |
AbstractApplicationContext |
无 |
obtainFreshbeanfactory() |
获取更新beanfactory |
ClassPathXmlApplicationContext.refresh() |
AbstractApplicationContext |
无 |
refreshbeanfactory() |
更新beanfactory |
AbstractApplicationContext.obtainFreshbeanfactory() |
AbstractApplicationContext |
AbstractRefreshableApplicationContext |
loadBeanDefinitions() |
加载bean |
AbstractRefreshableApplicationContext.refreshbeanfactory() |
AbstractRefreshableApplicationContext |
AbstractXmlApplicationContext |
loadBeanDefinitions() |
根据多个resources加载bean |
AbstractXmlApplicationContext.loadBeanDefinitions() |
AbstractBeanDefinitionReader |
无 |
loadBeanDefinitions() |
根据单个resource加载bean |
AbstractBeanDefinitionReader.loadBeanDefinitions() |
XmlBeanDefinitionReader |
无 |
doLoadBeanDefinitions() |
加载bean的逻辑核心部分 |
XmlBeanDefinitionReader.loadBeanDefinitions() |
XmlBeanDefinitionReader |
无 |
registerBeanDefinitions() |
注册BeanDefinition |
XmlBeanDefinitionReader.doLoadBeanDefinitions() |
XmlBeanDefinitionReader |
无 |
parseBeanDefinitions() |
解析BeanDefinition |
XmlBeanDefinitionReader.registerBeanDefinitions() |
DefaultBeanDefinitionDocumentReader |
无 |
parseDefaultElement() |
分配解析标签的策略 such as bean、alias |
DefaultBeanDefinitionDocumentReader.parseBeanDefinitions() |
DefaultBeanDefinitionDocumentReader |
无 |
parseBeanDefinitionElement() |
解析具体的标签 |
DefaultBeanDefinitionDocumentReader.parseDefaultElement() |
BeanDefinitionParserDelegate |
无 |
parseBeanDefinitionAttributes() |
注入bean的属性(这里面设置scope、abstract、lazy-init等) |
BeanDefinitionParserDelegate.parseBeanDefinitionElement() |
BeanDefinitionParserDelegate |
无 |