Spring 中的 refresh
2020-05-14 15:20:32 0 举报
AI智能生成
Spring 中的refresh
作者其他创作
大纲/内容
prepareRefresh
initPropertySources();
getEnvironment().validateRequiredProperties();
ConfigurableListableBeanFactory beanFactory = obtainFreshBeanFactory();
refreshBeanFactory();
prepareBeanFactory(beanFactory);
beanFactory.setBeanClassLoader
beanFactory.setBeanExpressionResolver
beanFactory.addPropertyEditorRegistrar
beanFactory.addBeanPostProcessor
beanFactory.ignoreDependencyInterface
beanFactory.registerResolvableDependency
beanFactory.registerSingleton
postProcessBeanFactory
invokeBeanFactoryPostProcessors
PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors
(beanFactory, getBeanFactoryPostProcessors());
(beanFactory, getBeanFactoryPostProcessors());
registerBeanPostProcessors
PostProcessorRegistrationDelegate.registerBeanPostProcessors(beanFactory, this);
initMessageSource
initApplicationEventMulticaster
onRefresh
registerListeners
finishBeanFactoryInitialization
finishRefresh
clearResourceCaches
initLifecycleProcessor
getLifecycleProcessor().onRefresh();
publishEvent(new ContextRefreshedEvent(this));
LiveBeansView.registerApplicationContext(this);
destroyBeans
cancelRefresh
收藏
收藏
0 条评论
下一页