检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]上海交通大学计算机科学与工程系,上海200030
出 处:《计算机应用研究》2004年第11期220-223,共4页Application Research of Computers
摘 要:面向方面的编程(AOP)是一种新的编程技术,它弥补了面向对象的编程(OOP)在跨越模块行为上的不足。AOP引进了Aspect,它将影响多个类的行为封装到一个可重用模块中,它允许程序员对横切关注点进行模块化,从而消除了OOP引起的代码混乱和分散问题,增强了系统的可维护性和代码的重用性。首先进行了AOP与OOP的比较,给出了AOP的原理和AOP的JBoss实现,最后介绍AOP在设计模式中的应用,并说明了使用它所带来的设计益处以及在应用AOP中应注意的问题。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.
分 类 号:TP392[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.30