Core Container

Core Container

The Core Container consists of the spring-core, spring-beans, spring-context, spring-context-support, and spring-expression (Spring Expression Language) modules.


Core Containerspring-core,spring-beans, spring-context, spring-context-support, 以及 spring-expression (Spring Expression Language)组成


The spring-core and spring-beans modules provide the fundamental parts of the framework, including the IoC and Dependency Injection features. The BeanFactory is a sophisticated implementation of the factory pattern. It removes the need for programmatic singletons and allows you to decouple the configuration and specification of dependencies from your actual program logic.


spring-corespring-bean提供了框架的基础功能。包括了IoC 以及依赖注入功能。BeanFactor 是 factory pattern 的复杂实现。他消除了对编程单例的需求,并且允许你 将配置与依赖规范 从实际的程序逻辑中解耦出来。


The Context (spring-context) module builds on the solid base provided by the Core and Beans modules: it is a means to access objects in a framework-style manner that is similar to a JNDI registry. The Context module inherits its features from the Beans module and adds support for internationalization (using, for example, resource bundles), event propagation, resource loading, and the transparent creation of contexts by, for example, a Servlet container. The Context module also supports Java EE features such as EJB, JMX, and basic remoting. The ApplicationContext interface is the focal point of the Context module. spring-context-support provides support for integrating common third-party libraries into a Spring application context, in particular for caching (EhCache, JCache) and scheduling (CommonJ, Quartz).


Context (spring-context) 模块是在Core和Beans的模块基础上建立起来的。他是一种访问框架的方法,类似与JNDI注册。Context 模块 继承在Beans并且添加了对国际化的支持(使用 例如 资源束),时间广播,资源加载。上下文的透明创建,比如一个Servlet容器。Context 模块同时也支持Java EE功能,比如EJB JMX 和基本的远程操作,ApplicationContext 是Context模块的焦点。spring-context-support 支持将第三方库集成到Spring 程序上下文中。特别是 缓存(EhCache, JCache)和调度CommonJ, Quartz).


The spring-expression module provides a powerful Expression Language for querying and manipulating an object graph at runtime. It is an extension of the unified expression language (unified EL) as specified in the JSP 2.1 specification. The language supports setting and getting property values, property assignment, method invocation, accessing the content of arrays, collections and indexers, logical and arithmetic operators, named variables, and retrieval of objects by name from Spring’s IoC container. It also supports list projection and selection as well as common list aggregations.


spring-expression 模块提供了强大的表达式语言。用于在程序运行时查找操作对象。是JSP2.1 规范中定义的EL 语言的扩展。 支持设置和获取属性值,分配属性,调用方法,访问 数组、集合和索引中的内容。逻辑和运算。变量命名,根据名称从Spring的IoC 容器中检索变量。它还支持List 投影和选择以及常见的List聚合。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值