AOP and Instrumentation

来源:互联网 发布:mac桌面文件夹隐藏 编辑:程序博客网 时间:2024/06/07 20:28

2.2.2 AOP and Instrumentation

The spring-aop module provides an AOP Alliance-compliant aspect-oriented programming implementation allowing you to define, for example, method interceptors and pointcuts to cleanly decouple code that implements functionality that should be separated. Using source-level metadata functionality, you can also incorporate behavioral information into your code, in a manner similar to that of .NET attributes.


Spring-aop 模块提供一个 遵循AOP 联盟标准的面向切片的编程方式实现。允许你定义诸如,拦截器,切入点等方法来 功能的实现代码清楚的解耦了。使用源码级元数据,可以将行为信息包含进代码中,类似与.NET中的属性。

The separate spring-aspects module provides integration with AspectJ.


spring-aspects 提供了与AspectJ 的集成

The spring-instrument module provides class instrumentation support and classloader implementations to be used in certain application servers. The spring-instrument-tomcat module contains Spring’s instrumentation agent for Tomcat.


spring-instrument 提供了在某些容器中实现类检测 以及类加载的功能。spring-instrument-tomcat 包含对于Spring 的 Tomcat instrumentation agent。

原创粉丝点击