栏目分类:
子分类:
返回
文库吧用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
文库吧 > IT > 软件开发 > 后端开发 > Java

2-1.spring源码--Container

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

2-1.spring源码--Container

Spring源码–container

通过读取spring官方参考文献,你就应该对spring有一个清晰的认知,对于ioc的地位的描述请看spring文献开篇内容

This part of the reference documentation covers all the technologies that are absolutely integral to the Spring Framework.

Foremost amongst these is the Spring Framework’s Inversion of Control (IoC) container. A thorough treatment of the Spring Framework’s IoC container is closely followed by comprehensive coverage of Spring’s Aspect-Oriented Programming (AOP) technologies. 

‎参考文档的这一部分涵盖了Spring框架中绝对不可或缺的所有技术。
‎《其中最重要的是Spring Framework的控制反转(IoC)容器。对Spring框架的IoC容器进行全面处理之后》,对Spring的面向方面编程(AOP)技术的全面报道紧随其后。

从上面内容看ioc的功能重要程度是最重要,aop还要排在ioc后面。在参考文献上第一章就是ioc介绍,下面是第一章提到中心内容,是下面这句话:A bean is an object that is instantiated, assembled, and managed by a Spring IoC container。

其中涉及到了两个重点内容一个是container(容器),还有一个事bean。后面ioc的学习会围绕这两个内容进行展开,本次主要学习container相关内容。

提到container最让人熟知的就是BeanFactory和ApplicationContext。

看文献中对于BeanFactory和ApplicationContext的描述。

the BeanFactory provides the configuration framework and basic functionality, and the ApplicationContext adds more enterprise-specific functionality. The ApplicationContext is a complete superset of the BeanFactory and is used exclusively in this chapter in descriptions of Spring’s IoC container.

BeanFactory提供配置框架和基本功能,ApplicationContext添加了特定于企业的功能。ApplicationContext是完全包含BeanFactory 。也是用于指定描述Spring’s IoC的容器。

后面会对BeanFactory和ApplicationContext进行详细介绍。

转载请注明:文章转载自 www.wk8.com.cn
本文地址:https://www.wk8.com.cn/it/1040756.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 wk8.com.cn

ICP备案号:晋ICP备2021003244-6号