根据spring的源码构造出此图:这是beans源码包下的
spring容器加载相关类图

xmlBeanFactory继承DefaultListableBeanFactory。
AliasRegistry:定义对alias的简单增删改等操作
SimpleAliasRegistry:主要使用map作为alias的缓存,并对接口AliasRegistry接口进行实现。
SingletonBeanRegistry:定义对单例的注册及获取。
BeanFactory:定义获取bean及bean的各种属性。
DefaultSingletonBeanRegistry:对接口SingletonBeanRegistry各函数的实现。
HierarchicalBeanFactory:继承了BeanFactory,也就是在BeanFactory定义的功能的基础上增加了对parentFactory的支持。
ConfigurableBeanFactory:提供配置factory的各种方法。
ConfigurableListableBeanFactory:BeanFactory配置清单,指定忽略类型及接口。

相关文章:

  • 2021-07-07
  • 2021-12-01
  • 2021-07-22
  • 2021-09-09
  • 2021-12-18
  • 2021-08-14
  • 2021-05-26
猜你喜欢
  • 2021-06-20
  • 2021-08-28
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
相关资源
相似解决方案