摘要
AOP(Aspect-Oriented Programming)是一种支持横切关注点的分解的技术,表达更高的抽象层次。它对于横切关注点就像面向对象程序设计对于对象封装和继承一样,提供了能够明确捕获横切结构的语言机制。一个模块化良好的横切关注点叫一个侧面(aspect)。首先介绍了AOP的基本思想,然后针对侧面代码和功能代码的编织问题讨论了几种典型的AOP实现机制的特点、优势及缺陷,最后展望了AOP的应用和发展方向,为进一步研究提供参考。
AOP (Aspect-Oriented Programming) is a technique for separation of crosscutting concerns which expresses higher abstraction level. AOP does for crosscutting concerns what OOP has done for object encapsulation and inheritance-it provides language mechanisms that explicitly capture crosscutting structure. A well-modularized crosscutting concern is called an aspect. This paper introduces the fundamental ideas of AOP, discusses the features, advantages and disadvantages of several typical implementation mechanisms of AOP according to the weaving of aspect code and component code. The prospect of the application and development direction of AOP is presented. This paper means to provide some references for further research on AOP.
出处
《计算机工程与设计》
CSCD
2003年第8期14-17,共4页
Computer Engineering and Design