期刊文献+

一种基于AOP的企业应用开发技术 被引量:5

An Enterprise Applicatble Developing Technology Based on AOP
下载PDF
导出
摘要 面向方面的编程(Aspect-OrientedProgramming,AOP)是一种新的编程技术,它弥补了面向对象的编程(Object-OrientedProgramming,OOP)在跨越模块行为上的不足。AOP引进了Aspect,它将影响多个类的行为封装到一个可重用模块中,它允许程序员对横切关注点(crosscuttingconcerns,即跨越典型职责界限的行为,例如日志记录)进行模块化,从而消除了OOP引起的代码混乱和分散问题,增强了系统的可维护性和代码的重用性。该文首先分析了AOP与OOP的比较,然后给出了AOP的原理和AOP的JBoss实现,最后介绍AOP在设计模式中的应用,并说明了使用它所带来的设计益处以及在应用AOP中应注意的问题。 <Abstrcat>AOP(Aspect-Oriented Programming) is a new programming technology which compensates the weakness of OOP(Object- Oriented Programming) at applying common behavior that spans multiple non-related object models. AOP introduces Aspect,it packages the behavior which impact multiple classes into a reusable model, it allows programmers to model crosscutting concerns(behavior which spans typical duty limit, such as log) and eliminate the code tangling and scattering caused by OOP,the code is more readable and easier to maintain. This essay first compares AOP with OOP, then analyses the AOP elements and gives implementation with JBoss 4.0,then introduces the AOP application in design-pattern, lastly illuminates the advantage of AOP and gives the points that should pay attention to AOP application.
出处 《计算机仿真》 CSCD 2005年第5期234-238,共5页 Computer Simulation
关键词 面向方面的编程 模块化 设计模式 Aspect-oriented programming Modularization Design pattern
  • 相关文献

参考文献8

  • 1Jan Hannemann & Gregor Kiczales. Design Pattern Implentation with Java and AspectJ[M]. JavaWorld, 2003-9.
  • 2The O'Reilly Java Authors. Java Enterprise Best Practices[M]. O'Reilly, 2003-6.
  • 3JamesW Cooper.Java Design Patterns A Tutorial[M].中国电力出版社,2003-9..
  • 4AlanShalloway JamesR Trott.DesignPatternsExplained,A New Perspective on Object-Oriented Design[M].中国电力出版社,2003-6..
  • 5the AspectJ Team, The AspectJ Programming Guide[M]. Eclipse, 2003-8.
  • 6Ramnivas Laddad , I want my AOP[M], JavaWorld, 2003.28
  • 7王晓军.用Geomedia组件进行二次开发的实践[J].石油工业计算机应用,2001(3):20-23. 被引量:6
  • 8JamesWCooper.Java Design Patterns A Tutorial[M].中国电力出版社,2003-9..

共引文献5

同被引文献24

引证文献5

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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