Spring IOC时序图
2020-10-26 19:31:32 0 举报
Spring IOC时序图
作者其他创作
大纲/内容
AbstractApplicationContext
获取资源:((ResourcePatternResolver)resourceLoader).getResources(location)
isDefaultNamespace(element)
AbstractRefreshableApplicationContext
AbstractXmlApplicationContext
loadBeanDefinitions(beanFactory)
doRegisterBeanDefinitions(element)
createBeanDefinitionDocumentReader()
ClassPathXmlApplicationContext
处理获取bean逻辑:obtainFreshBeanFactory()
注册
DefaultListableBeanFactory
BeanDefinitionParserDelegate
loadBeanDefinitions(resource)
true|false
XmlBeanDefinitionReader
设置 Bean 资源加载器:super(parent)
new ClassPathXmlApplicationContext(\"application.xml\");
loadBeanDefinitions(beanDefinitionReader)
refreshBeanFactory()
doLoadDocument()
createBeanFactory()
DefaultBeanDefinitionDocumentReader
loadBeanDefinitions(encodedResource)
加载
设置 Bean 配置信息的定位路径:setConfigLocations(location)
定位
BeanDefinitionReaderUtils
真正加载BeanDefinitions:doLoadBeanDefinitions()
启动加载: refresh()
0 条评论
下一页