spring接口设计
2022-11-24 13:47:56 0 举报
简单分解spring接口与类的逻辑关系
作者其他创作
大纲/内容
主流程继承关系
DefaultSingletonBeanRegistry
getSingleton
实现类继承接口
HierarchicalBeanFactory
ConfigurableBeanFactory
addBeanPostProcessordestroySingletons
SingletonBeanRegistry
BeanDefinitionRegistry
registerBeanDefinition
1.BeanFactory2.ListableBeanFactory、AutowireCapableBeanFactory、HierachicalBeanFactory3.ConfigurableBeanFactory4.ConfigurableListableBeanFactory
扩展点
DefaultListableBeanFactory
AbstractBeanFactory
getBean
void addBeanPostProcessor(BeanPostProcessor beanPostProcessor); void destroySingletons();
ListableBeanFactory
getBeansOfTypegetBeanDefinitionNames
ConfigurableListableBeanFactory
getBeanDefinitionpreInstantiateSingletons() addBeanPostProcessor
implatements
AutowireCapableBeanFactory
applyBeanPostProcesorsBeforeInitializationapplyBeanPostProcesorsAfterInitialization
BeanFactory
extends
收藏
0 条评论
下一页