用于介绍 Spring 中常见类的说明,及特殊类的重要字段说明。
源码 git 仓库地址码云地址:https://gitee.com/haohaos/spring-framework/tree/5.1.x/
5.1.x
源码解读
解释绝对路径,将普通路径解释为包含包路径的类资源路径名
源码解读
主要功能是用 XmlBeanDefinitionReader 从包含 bean definitions 的 xml 文档中拉取配置。loadBeanDefinitions(DefaultListableBeanFactory beanFactory),loadBeanDefinitions(XmlBeanDefinitionReader reader),Resource[] getConfigResources()
源码解读
仅继承 AbstractRefreshableApplicationContext,在它的功能上添加了对配置位置的处理,重点关注 private String[] configLocations;
源码解读
这个实现支持多次调用 refresh(),每次调用都创建一个新的内部 bean factory 实例。protected abstract void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) 用来加载 BeanDefinition
源码解读
抽象类,实例化模版方法 refresh() 作为模版实现。
源码解读
提供配置 application context 的方法,还对 生命周期方法做了封装,但仅能在启动和关闭时被使用。
源码导读
BeanFactory,ResourceLoaderAware,ApplicationEventPublisherAware,MessageSourceAware 能力的整合
源码导读
实现等级制度的一部分
源码导读
可以枚举通过 bean 工厂实现的所有 bean 实例
源码解读
Spring bean 容器的根接口



