摘要
现在大多数的软件项目都选择OOP的编程方式,但OOP技术也有其局限性,它对有些需求并不能很好的进行描述。介绍了一种全新的程序设计方法--面向方面的程序设计(Aspect-Oriented Programming,AOP),这种编程技术可以有效地描述OOP方法不能描述的关注点;介绍了面向方面程序设计的基本思想以及面向方面程序设计设计语言以及AspectJ的基本概念。它是对面向过程、面向对象方法的进一步发展。通过引入方面概念,可以改进关注点的分离(separation of concerns),减少代码缠结(code tan-gling)和解决横切关注点(crosscutting concerns)的问题,提高软件质量和效率。
Separation of concerns is an important software engineering principle. The leading programming paradigm used today is object oriented programming (OOP),yet OOP has its limit at joins ,some design decisions cannot be illustrated with the OOP.This paper introduces an new programming paradigm called aspect-oriented programming:a program technique that make it possible to express those programs that OOP fail to support also ,AOP fundamentals and the basic concept of AOP language. AspectJ are introduced in the paper also. It is further development of OO and OP. Through the concept of aspect can improve the separateion of concerns,reduce the code tangling and resolve the crosscutting concerns.It can also improve the quality and efficiency of software.
出处
《电脑知识与技术(过刊)》
2010年第7X期5490-5492,共3页
Computer Knowledge and Technology