摘要
面向方面编程(Aspect-Oriented Programming,AOP)是面向对象编程(Object-Oriented Programming,OOP)的一种扩展技术,能很好地解决横切关注点问题以及相关的设计难题,被认为将成为一种有深远影响的新的程序设计范型犤3犦。该文在比较分析传统的OOP方法在解决横切关注点问题不足的基础上,引入AOP技术,展示了AOP编程范型的原理和框架,分析了它对软件开发方法带来的革命性影响,最后以AspectJ为例,给出了一个AOP在并发访问控制中的实现。
Aspect-Oriented Programming is an extension of Object-Oriented Programming technology and offers a good means to solve the problem of crosscutting concerns and related design difficulties.It is assumed to become a new profound programming archetype.After analyzing the drawbacks of the conventional OOP means in solving the problem of crosscutting concerns,the paper introduces the AOP technology,illustrates its thoughts and framework,analyzes its profound impact on software development,and presents an example of its implementation in AspectJ in the process of synchronized access to objects.
出处
《计算机工程与应用》
CSCD
北大核心
2005年第16期94-96,118,共4页
Computer Engineering and Applications