Spring-DI-过程
2021-06-30 22:35:05 0 举报
Spring DI的时序图,可以对DI有宏观和微观的把握.
作者其他创作
大纲/内容
依赖注入(给属性赋值)
instantiateWithMethodInjection
instantiate
doGetBean
CglibSubclassCreator
反射setValue
createBeanInstance
processLocalProperty
SimpleInstantiationStrategy
instantiateClass
CglibSubclassingInstantiationStrategy
DirectFieldAccessor.FieldPropertyHandler
refresh 然后..会 getBean
AbstractPropertyAcessor
applyPropertyValues
BeanUtils
createBean
processKeyedProperty
initializeBeanAop的Proxy
AbstractAutowireCapableBeanFactory
ClassPathXMLApplicationContext
BeanWrapperImpl.BeanPropertyHandler
实例化Bean(DI目的)
AbstractBeanFactory
setPropertyValues
AbstractNestablePropertyAccessor
autoWireByType
autoWireByName
getBean?
populateBean
AbstractApplicationContext
doCreateBean
setPropertyValue
0 条评论
下一页