循环结构流程图
2019-12-18 20:40:16 0 举报
invokeBeanFactoryPostProcessors()
作者其他创作
大纲/内容
PostProcessorRegistrationDelegate
处理@ImportResource注解
prepareRefresh()
ConfigurationClassBeanDefinitionReader
finishRefresh()
processConfigBeanDefinitions()
prepareBeanFactory()
AbstractApplicationContext
refresh()
获取BeanFactory对象
postProcessBeanFactory()
postProcessBeanDefinitionRegistry()
ConfigurationClass
// Prepare this context for refreshing
AutoConfigurationImportSelector.selectImports()
onRefresh()
ConfigurationClassParser
processConfigurationClass()
处理@PropertySources注解
处理@ComponentScan注解
处理@Bean注解
处理@Import注解
ConfigurationClassPostProcessor
// Tell the subclass to refresh the internal bean factory.
initMessageSource()
registerListeners()
finishBeanFactoryInitialization()
DemoApplication
initApplicationEventMulticaster()
parse( )
// Prepare the bean factory for use in this context.
ImportSelector实现类
实例化ImportSelector放到deferredImportSelectors属性中
invokeBeanFactoryPostProcessors()
处理deferredImportSelector
registerBeanPostProcessors()
0 条评论
下一页