摘要
面向方面的编程(AOP)是一种新的编程技术,它弥补了面向对象的编程(OOP)在跨越模块行为上的不足。AOP引进了Aspect,它将影响多个类的行为封装到一个可重用模块中,它允许程序员对横切关注点进行模块化,从而消除了OOP引起的代码混乱和分散问题.增强了系统的可维护性和代码的重用性乞该文分析传统权限控制、事务控制的实现方法,并研究了在AOP下权限控制、事务控制的实现方法从而为AOP技术在项目中的应用提供一定的参考。
AOP is a new coding technique, which remedies the shortage of OOP in spanning module behavior. Aspect which affects the behaviors of several classes when they are encapsulated in a repeatable used module is introduced in AOP. It also allows programmers to module the transversely points, which eliminates code confusion and distribution, and enhances the maintainability of system and repeatable use of codes. This paper analyses and studies the way of the privilege controlling, transaction controlling. It can be a reference for application of AOP.
作者
王培林
汤阳
WANG Pei-lin, TANG Yang (1 .Department of software, Tongli University, Shanghai 200092, China; 2. The 1 ST Department, 91746 Unit, Beijing,102206, China)
出处
《电脑知识与技术》
2008年第12期1770-1771,1778,共3页
Computer Knowledge and Technology
关键词
AOP
设计模式
权限
事务
车险
AOP
design pattern
privilege
transaction
vehicle insurance