Spring refresh部分调用
2021-07-09 13:37:30 6 举报
AI智能生成
Spring refresh部分调用
作者其他创作
大纲/内容
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
registerDisposableBeanIfNecessary
afterSingletonCreation
addSingleton
getObjectForBeanInstance
isFactoryDereference
getObjectFromFactoryBean
doGetObjectFromFactoryBean
factory.getObject();
postProcessObjectFromFactoryBean
convertIfNecessary
finishRefresh
resetCommonCaches
依赖注入
@Autowired
AutowiredAnnotationBeanPostProcessor#postProcessMergedBeanDefinition
findAutowiringMetadata
buildAutowiringMetadata
checkConfigMembers
AutowiredAnnotationBeanPostProcessor#postProcessProperties
InjectionMetadata#inject
AutowiredAnnotationBeanPostProcessor.AutowiredFieldElement#inject
resolveDependency
AutowiredAnnotationBeanPostProcessor.AutowiredMethodElement#inject
@Resource
CommonAnnotationBeanPostProcessor#postProcessMergedBeanDefinition
findResourceMetadata
buildResourceMetadata
CommonAnnotationBeanPostProcessor#postProcessProperties
InjectionMetadata.InjectedElement#inject
getResourceToInject
CommonAnnotationBeanPostProcessor#getResource
CommonAnnotationBeanPostProcessor#autowireResource
resolveDependency / resolveBeanByName
field.set
method.invoke
doResolveDependency
resolveCandidate
beanFactory.getBean(beanName);
收藏
0 条评论
回复 删除
下一页