Spring框架高级编程

来源:互联网 发布:淘客推广软件 编辑:程序博客网 时间:2024/06/06 11:41

Professional Java Development with the Spring Framework

Consistent Abstraction

If we return to the core Spring mission of providing declarative service to POJOs, we see that it's not sufficient to have an AOP framework. From a middleware perspective, an AOP framework is a way of delivering services; it's important to have services to deliver — for example, to back a transaction management aspect. And of course not all services can be delivered declaratively; for example, there's no way to avoid working with an API for data access.

Important 

The third side of the Spring triangle, after IoC and AOP, is a consistent service abstraction

 

Spring框架高级编程,翻译成为:

 

一致性抽象

如果回到给POJO提供声明式服务的核心Spring任务这一点,我们所见到的并不足以拥有AOP框架。从中间件观点来看,AOP框架就是交付服务的方法;例如,交付服务来支持事务管理是很重要的。当然,并不是所有的服务都以声明式的方法进行交付;例如,在数据访问时就必须使用API.

除了IOC和AOP之外,Spring鼎足而立的第三足就是一致性的服务抽象。

 

BTW:完全不知所云,离题万里啊