首页 | 本学科首页   官方微博 | 高级检索  
     

面向方面的编程的研究与实现
引用本文:王申源,董传良,刘英丹.面向方面的编程的研究与实现[J].计算机应用研究,2004,21(11):220-223.
作者姓名:王申源  董传良  刘英丹
作者单位:上海交通大学,计算机科学与工程系,上海,200030
摘    要:面向方面的编程(AOP)是一种新的编程技术,它弥补了面向对象的编程(OOP)在跨越模块行为上的不足。 AOP 引进了Aspect,它将影响多个类的行为封装到一个可重用模块中,它允许程序员对横切关注点进行模块化,从而消除了OOP引起的代码混乱和分散问题,增强了系统的可维护性和代码的重用性。首先进行了AOP与OOP的比较,给出了AOP的原理和AOP的JBoss实现,最后介绍AOP在设计模式中的应用,并说明了使用它所带来的设计益处以及在应用AOP中应注意的问题。

关 键 词:面向方面的编程  设计模式
文章编号:1001-3695(2004)11-0220-04
修稿时间:2003年8月15日

Research and Implementation of Aspect-Oriented Programming
WANG Shen-yuan,DONG Chuan-liang,LIU Ying-dan.Research and Implementation of Aspect-Oriented Programming[J].Application Research of Computers,2004,21(11):220-223.
Authors:WANG Shen-yuan  DONG Chuan-liang  LIU Ying-dan
Abstract:Aspect-Oriented Programming(AOP) is a new programming technology.It compensates the weakness of Object-Oriented Programming(OOP) at applying common behavior that spans multiple non-related object models.AOP introduces Aspect,it packages the behavior which impacts multiple classes into a reusable model,it allows programmers to model crosscutting concerns and eliminates the code tangling and scattering caused by OOP,the code is more readable and easier to maintain.This essay compares AOP with OOP,analyses the AOP elements and give implementation with JBoss 4.0.It introduces the AOP application in design-pattern,illuminates the advantage of AOP and give the points that should pay attention to AOP application.
Keywords:Aspect-Oriented Programming  Design Pattern
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号