SpringIoc创建流程图
2019-11-29 15:16:05 3 举报
AI智能生成
Spring深度解析之IOC的创建完整流程
作者其他创作
大纲/内容
GenericApplicationContext
new DefaultListableBeanFactory()
refresh
finishBeanFactoryInitialization
preInstantiateSingletons
getBean
doGetBean
transformedBeanName
getSingleton
getObjectForBeanInstance
getParentBeanFactory()
getDependsOn()
mbd.isSingleton()
beforeSingletonCreation
singletonFactory.getObject()
createBean
resolveBeforeInstantiation
doCreateBean
createBeanInstance
determineConstructorsFromBeanPostProcessors
applyMergedBeanDefinitionPostProcessors
addSingletonFactory
populateBean
ibp.postProcessAfterInstantiation
mbd.getResolvedAutowireMode()
ibp.postProcessProperties
findAutowiringMetadata
inject
elementsToIterate
(Field) this.member
inject
resolveDependency
doResolveDependency
getDependencyType()
findAutowireCandidates
resolveCandidate
field.set()
applyPropertyValues();
initializeBean
invokeAwareMethods
applyBeanPostProcessorsBeforeInitialization
invokeInitMethods
applyBeanPostProcessorsAfterInitialization
getSingleton
registerDisposableBeanIfNecessary
afterSingletonCreation
addSingleton
getObjectForBeanInstance
0 条评论
下一页