IoC(控制反转)是一种设计模式,是用来解耦组件间复杂依赖关系的。Spring IoC是这种模式的一种实现。
- BeanFactory路线
- BeanFactory接口定义了基本的IoC容器的基本规范。
- 而HierarchicalBeanFactory接口在继承BeanFactory的基本接口之后,增加了getParentBeanFactory的接口功能,使BeanFactory具备双亲IoC容器的管理功能。
- 接下来的ConfigurableBeanFactory,主要配置了一些对BeanFactory的配置功能。

- ApplicationContext路线

网友评论