期刊文献+

面向方面的程序设计:概念、实现与未来 被引量:14

Aspect-Oriented Programming:Concept, Implementation and Future
下载PDF
导出
摘要 面向对象程序设计(OOP)的出现极大地提高了软件的可读性、可维护性和可复用性,但OOP并没有彻底解决软件的维护和复用问题,本质上是因为OOP难以模块化处理软件系统的横切关注点,以至于业务逻辑代码和其它代码(如日志记录、安全验证等)相互“纠缠”在一起,使得程序难以维护和复用。面向方面的程序设计(AOP)由此诞生,它最主要的设计原则是模块化系统的横切关注点,将业务代码与其它代码解耦,在更高的抽象和分解层次上,进一步提高了软件的可维护性、可复用性和可扩展性。首先深度探索了AOP的起源,然后阐述了AOP的本质,接着介绍了AOP的基本概念并以最为流行的实现语言AspectJ为例,剖析了AOP的实现机制,最后讨论了AOP在软件开发、测试、分析、度量和重构等领域的研究状况。 The appearance of Object - Oriented Programming (OOP) improves readability,maintainability and reusability of software, but it hasn't completely resolved the problem of maintaining and reusing software,essentially this is due to the lack of modularizing crosscutting concerns, resulting functional code and other code (such as log recording and security validation etc. ) often tangle together, leading to the poor maintenance and reuse of software. For overcoming this problem in software design and implementation, Aspect - Oriented Programming (AOP) is put forward to modularize the crosscutting concerns by a special unit, it decouples function code and other code, and on a higher-level of abstraction and decomposition, it improves maintainability, reusability and extendibility of software further. In this paper, we first explore the origin of AOP, and then we explain the essence of AOP, and next we introduce related concepts and then analyze the implementation mechanism of AspectJ, and at last we discuss aspect- oriented research areas including AOSD, aspect- oriented software testing, analysis, measurement, refactoring.
出处 《计算机与数字工程》 2005年第8期1-10,共10页 Computer & Digital Engineering
基金 国家杰出青年科学基金项目(60425206) 国家自然科学基金重大研究计划(90412003) 国家自然科学基金青年科学基金(60403016) 国家"九七三"重点基础研究发展规划(2002CB312000) 高等学校博士学科点专项科研基金(20020286004) 江苏省计算机信息处理技术重点实验室(苏州大学)开放基金(KJS02009 T8118011)等的资助。
关键词 面向方面的程序设计 面向对象程序设计 ASPECTJ 横切关注点 Aspect - Oriented Programming, Object - Oriented Programming, AspectJ, crosscutting concerns
  • 相关文献

参考文献31

  • 1GradyBooch著 冯博琴译.面向对象的分析与设计[M].机械工业出版社,2003..
  • 2Timothy Highley, Michael Lack, Perry Myers. Aspect Oriented Programming: A Critical Analysis of a New Programming Paradigm, Technical Report[ R ]. University of Virginia, 1999.
  • 3Jan Hannemann, Gregor Kiczales. Design Pattern Implementation in Java and AspectJ [ C]. OOPSLA '02, Seattle, Washington, USA, 2002.
  • 4Gregor Kiczales. Aspect - Oriented Programming with AspectJTM1. 01, Technical Report on PARC Workshop 2002[C]. 2002.
  • 5The AspectJ Team. The AspectJ Programming Guide 2002.
  • 6The AspectJTM Primer. A Pratical Guide for Programmers.
  • 7Gregor Kiczales, Erik Hilsdale, Jim Hugunin, etc. An Overview of AspectJ, the 15th European Conference on Object-Oriented Programming, Budapest, Hungary[C].2001:327~353.
  • 8Gregor Kiczales. Aspect- Oriented Programming, Proceedings of the European Conference on Object - Oriented Programming (ECOOP) [C]. Springer- Verlag, Finland,1997.
  • 9.[EB/OL].Http:∥eclipse. org/aspectj /,.
  • 10.[EB/OL].Http:∥www. TheSeverSide. com - Aspect - Oriented refactoring series- Part1,.

同被引文献45

引证文献14

二级引证文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部