Spring refresh部分调用
2021-07-09 13:37:30 6 举报
AI智能生成
Spring refresh部分调用
作者其他创作
大纲/内容
prepareRefresh
obtainFreshBeanFactory
prepareBeanFactory
postProcessBeanFactory
invokeBeanFactoryPostProcessors
registerBeanPostProcessors
initMessageSource
initApplicationEventMulticaster
onRefresh
registerListeners
finishBeanFactoryInitialization
preInstantiateSingletons
getBean
doGetBean
transformedBeanName
getSingleton
beforeSingletonCreation
createBean[singletonFactory.getObject()]
resolveBeforeInstantiation
InstantiationAwareBeanPostProcessor#postProcessBeforeInstantiation
BeanPostProcessor#postProcessAfterInitialization
doCreateBean
createBeanInstance
applyMergedBeanDefinitionPostProcessors
MergedBeanDefinitionPostProcessor#postProcessMergedBeanDefinition
earlySingletonExposure
populateBean
InstantiationAwareBeanPostProcessor#postProcessAfterInstantiation
autowireByName/autowireByType
InstantiationAwareBeanPostProcessor#postProcessProperties
applyPropertyValues
initializeBean
invokeAwareMethods
BeanPostProcessor#postProcessBeforeInitialization
invokeInitMethods
InitializingBean#afterPropertiesSet
AbstractAutowireCapableBeanFactory#invokeCustomInitMethod
BeanPostProcessor#postProcessAfterInitialization
registerDisposableBeanIfNecessary
afterSingletonCreation
addSingleton
getObjectForBeanInstance
isFactoryDereference
getObjectFromFactoryBean
doGetObjectFromFactoryBean
factory.getObject();
beforeSingletonCreation
postProcessObjectFromFactoryBean
BeanPostProcessor#postProcessAfterInitialization
afterSingletonCreation
convertIfNecessary
finishRefresh
resetCommonCaches
依赖注入
@Autowired
MergedBeanDefinitionPostProcessor#postProcessMergedBeanDefinition
AutowiredAnnotationBeanPostProcessor#postProcessMergedBeanDefinition
findAutowiringMetadata
buildAutowiringMetadata
checkConfigMembers
InstantiationAwareBeanPostProcessor#postProcessProperties
AutowiredAnnotationBeanPostProcessor#postProcessProperties
findAutowiringMetadata
InjectionMetadata#inject
AutowiredAnnotationBeanPostProcessor.AutowiredFieldElement#inject
resolveDependency
field.set(bean, value);
AutowiredAnnotationBeanPostProcessor.AutowiredMethodElement#inject
resolveDependency
method.invoke(bean, arguments);
@Resource
MergedBeanDefinitionPostProcessor#postProcessMergedBeanDefinition
CommonAnnotationBeanPostProcessor#postProcessMergedBeanDefinition
findResourceMetadata
buildResourceMetadata
checkConfigMembers
InstantiationAwareBeanPostProcessor#postProcessProperties
CommonAnnotationBeanPostProcessor#postProcessProperties
InjectionMetadata#inject
InjectionMetadata.InjectedElement#inject
getResourceToInject
CommonAnnotationBeanPostProcessor#getResource
CommonAnnotationBeanPostProcessor#autowireResource
resolveDependency / resolveBeanByName
field.set
method.invoke
resolveDependency
doResolveDependency
resolveCandidate
beanFactory.getBean(beanName);
收藏
0 条评论
下一页