Spring AOP面向切面编程
2017-09-16 09:20
459 查看
11. Aspect Oriented Programming with Spring
11.1 Introduction
Aspect-Oriented Programming (AOP) complements Object-Oriented Programming (OOP) by providing
another way of thinking about program structure. The key unit of modularity in OOP is the class, whereas
in AOP the unit of modularity is the aspect. Aspects enable the modularization of concerns such as
transaction management that cut across multiple types and objects. (Such concerns are often termed
crosscutting concerns in AOP literature.)
One of the key components of Spring is the AOP framework. While the Spring IoC container does not
depend on AOP, meaning you do not need to use AOP if you don’t want to, AOP complements Spring
IoC to provide a very capable middleware solution.
面向切面编程(AOP)是对面向对象编程(OOP)的一种完善,提供了另一种思考程序架构的方式。OOP的核心模块单元是类,然而在AOP中核心模块单元是切面。切面可以使模块更加关注从各种类型和对象中抽取的事物管理。
AOP是Spring中关键的组件旨之一。但是Spring IOC容器不依赖于AOP,意味这如果你不想使用AOP的话可以没必要添加这个模块。AOP完善了Spring IOC提供了很好的中间件解决思路。
11.1 Introduction
Aspect-Oriented Programming (AOP) complements Object-Oriented Programming (OOP) by providing
another way of thinking about program structure. The key unit of modularity in OOP is the class, whereas
in AOP the unit of modularity is the aspect. Aspects enable the modularization of concerns such as
transaction management that cut across multiple types and objects. (Such concerns are often termed
crosscutting concerns in AOP literature.)
One of the key components of Spring is the AOP framework. While the Spring IoC container does not
depend on AOP, meaning you do not need to use AOP if you don’t want to, AOP complements Spring
IoC to provide a very capable middleware solution.
面向切面编程(AOP)是对面向对象编程(OOP)的一种完善,提供了另一种思考程序架构的方式。OOP的核心模块单元是类,然而在AOP中核心模块单元是切面。切面可以使模块更加关注从各种类型和对象中抽取的事物管理。
AOP是Spring中关键的组件旨之一。但是Spring IOC容器不依赖于AOP,意味这如果你不想使用AOP的话可以没必要添加这个模块。AOP完善了Spring IOC提供了很好的中间件解决思路。
相关文章推荐
- Spring aop 拦截器(即面向切面编程)
- Spring AOP详解面向切面编程
- Spring详解篇之 AOP面向切面编程
- Spring面向切面编程(AOP-execution表达式)
- 配置Spring AOP面向切面编程
- Aop_面向切面编程(2)_spring的aop实现
- spring framework面向切面编程示例(xml配置):spring-aop
- Spring -- aop(面向切面编程),前置&后置&环绕&抛异常通知,引入通知,自动代理
- Spring基础、IOC(控制反转)、AOP(面向切面编程)、Log4j、注解配置
- 深入探索spring技术内幕(七): 配置Spring AOP面向切面编程
- Spring学习(8)--AOP(面向切面编程)基础
- Spring——AOP(面向切面编程)@AspectJ注解方式
- spring Aop 面向切面编程简单实例
- Spring实践:面向切面编程(AOP)
- Spring 的面向切面编程(AOP)
- spring framework面向切面编程示例(基于注解):spring-aop
- [置顶] SSM框架 之 Spring-AOP(面向切面编程)
- Spring——AOP(面向切面编程)@AspectJ注解方式
- 关于springAOP,面向切面编程
- Spring学习笔记(AOP面向切面编程)