spring源码(一)

114 阅读1分钟

基本框架

1、resource

资源定义,文件、url等

1.1、resourceLoader

资源加载相关

2、beanFactory

bean工厂,根据definition描述创建bean

3、BeanDefinition

描述bean

4、BeanDefinitionReader

对配置文件中的内容转化成definition

5、ApplicationContext

继承自beanfacroty

继承 org.springframework.context.MessageSource 接口,提供国际化的标准访问策略。

继承 org.springframework.context.ApplicationEventPublisher 接口,提供强大的事件机制。

扩展 ResourceLoader ,可以用来加载多种 Resource ,可以灵活访问不同的资源。

对 Web 应用的支持。