Map of Spring Start Process
2021-03-12 15:25:31 0 举报
Spring 启动地图 防止迷失在 Spring 森林当中
作者其他创作
大纲/内容
obtainFromSupplier
finishRefresh
CommonAnnotationBeanPostProcessor
applicationListeners
postProcessBeanFactory
StandardBeanExpressionResolver
register
getBean
addBeanPostProcessor
GenericApplicationContext
BeanDefinitionRegistryPostProcessor
BeanFactoryResourceLoaderApplicationEventPublisherApplicationContext
getSingleton()
applyBeanPostProcessorsAfterInitialization
AnnotatedBeanDefinitionReader
initApplicationEventMulticaster
Component.class
ConfigurationClassPostProcessor
BeanPostProcess
AutowiredAnnotationBeanPostProcessor
freezeConfiguration
parser @Configuration
AnnotationConfigUtils.registerAnnotationConfigProcessors
reader.loadBeanDefinitions
earlyApplicationListeners
registerResolvableDependency
applyPropertyValues => @Value
SmartInstantiationAwareBeanPostProcessor
new DefaultListableBeanFactory();
pre-fresh
refresh()
addEmbeddedValueResolver
afterSingletonCreation()
DefaultSingletonBeanRegistry
instantiateUsingFactoryMethod
preInstantiateSingletons
finishBeanFactoryInitialization
invokeCustomInitMethod
ApplicationEventMulticaster
ImportAwareBeanPostProcessor
instantiateBean
EventListenerMethodProcessor
singletonFactory.getObject();
PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors
prepareBeanFactory
InstantiationAwareBeanPostProcessor.postProcessProperties
BeanFactoryProcessor
DefaultEventListenerFactory
earlySingletonExposure
processConfigBeanDefinitions
PostProcessorRegistrationDelegate.registerBeanPostProcessors
initMessageSource
getMergedLocalBeanDefinition
null
getObjectForBeanInstance
resolveBeanClass()
this.scanner = new ClassPathBeanDefinitionScanner(this)
ApplicationContextAwareProcessor
enhanceConfigurationClasses
registerSingleton
implements by webapp
populateBean
this.reader = new AnnotatedBeanDefinitionReader(this)
ResourceEditorRegistrar
addPropertyEditorRegistrar
register()
AutowireAnnotationBeanPostProcessor
Color Scope
prepareRefresh()
InstantiationAwareBeanPostProcessor.postProcessAfterInstantiation
AnnotationConfigApplicationContext
BeanPostProcessorpostProcessAfterInitialization
doCreateBean()
applyBeanPostProcessorsBeforeInstantiation
invokeBeanFactoryPostProcessors
earlyApplicationEvents
registerListeners
mbdToUse.prepareMethodOverrides();
BeanExpressionResolver
registerDisposableBeanIfNecessary
ContextAnnotationAutowireCandidateResolver
createBean()
no
AbstractBeanFactory
registerBeanPostProcessors
setConversionService
initializeBean
applyMergedBeanDefinitionPostProcessors
doProcessConfigurationClass
invokeInitMethods
LoadTimeWeaverAwareProcessor
ApplicationEventMulticaster.addApplicationListener
AbstractApplicationContext
this()
onRefresh
afterPropertiesSet
BeanPostProcessorpostProcessBeforeInitialization
createBeanInstance
AnnotationAwareOrderComparator
yes
if instantiation
invokeAwareMethods
registerPostProcessor
beforeSingletonCreation()
processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd)
autowireConstructor
ENVIRONMENT_BEANSYSTEM_PROPERTIES_BEANSYSTEM_ENVIRONMENT_BEA
registerDefaultFilters
ApplicationEventMulticaster.multicastEvent(earlyEvent)
增强配置类
postProcessBeanDefinitionRegistry
doRegisterBean
EnvironmentAwareEmbeddedValueResolverAwareResourceLoaderAwareApplicationEventPublisherAwareMessageSourceAwareApplicationContextAware
smartSingleton.afterSingletonsInstantiated
resolveBeforeInstantiation()
addSingleton
收藏
0 条评论
下一页