2011年4月14日星期四

Spring 3 参考文档 读书笔记

Part 1 Spring 3 综述

1 Spring 简介
transaction 事务控制
远程方法
JMX(Java Management Extensions) ---(JMX致力于解决分布式系统管理的问题,因此,能够适合于各种不同的环境是非常重要的。为了能够利用功能强大的Java计算环境解决这一的问题,Sun公司扩充了Java基础类库,开发了专用的管理类库。)
JMS

1.1 DI 和IoC 依赖注入 反转控制


1.2 Modules 模块

1.2.1 Core Container 核心容器,
Core Container 核心容器包括:Core, Beans, Context, and Expression Language modules.
Core and Beans模块: IoC, DI ;BeanFactory-- 工厂模式; 免编程 实现单例, 配置 解耦合

Context module: -- 类似 JNDI, 支持 国际化,event-propagation(消息传播), 导入 resourse.... ApplicationContext 为其焦点

Expression Language: EL,

1.2.2 Data Access/Integration 数据访问和集成
由JDBC, ORM, OXM, JMS and Transaction modules 构成

JDBC模块:

ORM模块:支持JPA,JDO, Hibernate, and iBatis, 例如申明式 事务控制
OXM模块: Object/XML mapping
JMS模块
Transaction模块: 编程式和申明式 事务控制 --- 实现特定接口的和POJOs

1.2.3 Web
包括: Web, Web-Servlet, Web-Struts, and Web-Portlet modules.
Web模块: 基本的, 多文件上传, 使用servlet listeners , application context Ioc 初始化, web 相关的远程。

Web-Servlet 模块: SpringMVC
Web-Struts 模块:Struts1 不再推荐, Struts2

1.3 使用场景

依赖管理和命名规范

依赖管理和 DI是不同的事情

× 从 springsource 下载
× Maven Central
×Enterprise Bundle Repository (EBR)
×Amazon S3

Spring Dependencies and Depending on Spring

Maven Dependency Management 非常好
Ivy Dependency Management


Logging
Not Using Commons Logging
Using SLF4J
Using Log4J
Runtime Containers with Native JCL

3 条评论:

匿名 说...

[url=http://casodex-bicalutamide.webs.com/]Praxis
[/url] Zolacos
Calumid
Procure

匿名 说...

[url=http://cyclosporine.webs.com]sandimmun ampollas
[/url] cyclosporine kinetics
sandimmun spc
ciclosporina y jugo de naranja

匿名 说...

[url=http://www.microgiving.com/profile/ribavirin]buy copegus
[/url] ribavirin buy
order rebetol online
ribavirin 200 mg online