spring 时序图
2020-05-26 21:26:11 30 举报
Spring 容器初始化
作者其他创作
大纲/内容
org.springframework.beans.factory.parsing.ReaderContext
preInstantiateSingletons()初始化所有非懒加载的单例bean
finishBeanFactoryInitialization(beanFactory)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
refresh()
parseBeanDefinitionElement(element)
doGetBean()
fireComponentRegistered(componentDefinition)
别名转换缓存获取原型依赖检查父各scope实例化
prepareRefresh()
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate
org.springframework.context.support.AbstractApplicationContext
registerBeanPostProcessors(beanFactory)
doRegisterBeanDefinitions(root)
类型转换
resetCommonCaches()
int
loadBeanDefinitions(resource)
obtainFreshBeanFactory()
getBean(beanName)
initApplicationEventMulticaster()
loadBeanDefinitions(resource...)
org.springframework.context.support.AbstractXmlApplicationContext
loadBeanDefinitions(encodedResource)
org.springframework.beans.factory.support.BeanDefinitionReaderUtils
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
org.springframework.context.support.AbstractRefreshableApplicationContext
org.springframework.beans.factory.support.AbstractBeanDefinitionReader
org.springframework.beans.factory.support.DefaultListableBeanFactory
refreshBeanFactory()
loadBeanDefinitions(beanFactory)
postProcessBeanFactory(beanFactory)
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
org.springframework.beans.factory.support.AbstractBeanFactory
finishRefresh()
bean
loadBeanDefinitions(reader)
onRefresh()
invokeBeanFactoryPostProcessors(beanFactory)
registerListeners()
BeanDefinitionHolder
initMessageSource()
prepareBeanFactory(beanFactory)
收藏
收藏
0 条评论
下一页