摘要
针对面向方面编程中存在的切点软化问题,提出一种可视化的切点定义方法,切点定义依据一种概念模型而不再依赖于基础程序的具体结构,实现了切点定义与基础程序的解耦,提高了切点鲁棒性。概念模型是对AspectJ切点表达式的可视化的抽象概括,通过扩展UML元模型实现,文中称之为切点模型。同时,扩展了Rational Rose,使其支持切点模型的建模,并实现了由切点模型自动生成方面框架代码。
This paper proposed a visual approach to pointcut definition to tackle the fragile pointcut problem of aspect-oriented programming.The pointcut definition was based on a conceptual model not directly on how the base program was structured,which had effectively decoupled the pointcuts from the base program s structure.Therefore,it improved the robustness of the pointcut.The conceptual model was,as an abstraction of the AspectJ pointcut descriptor,achieved through extending the UML meta-model elements.Therefo...
出处
《计算机应用》
CSCD
北大核心
2009年第3期686-689,715,共5页
journal of Computer Applications
基金
重庆市自然科学基金资助项目(2005BB2059)
重庆市教委科技研究项目(KJ040511)