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

AOP中方面冲突自动检测方法研究
引用本文:胡宏银,何成万.AOP中方面冲突自动检测方法研究[J].计算机工程与设计,2012,33(8):3064-3068.
作者姓名:胡宏银  何成万
作者单位:1. 武汉工程大学计算机学院,湖北武汉 430205;武汉工程大学智能机器人湖北省重点实验室,湖北武汉 430073
2. 武汉工程大学计算机学院,湖北武汉,430205
基金项目:国家自然科学基金项目(60873024);湖北省自然科学基金项目(2009CDB293)
摘    要:为了解决面向方面编程中的方面冲突问题,在分析现有解决方法的基础上,提出了一种基于契约式设计的方面冲突自动检测方案。根据设计文档使用JML给方面和基础程序标注契约,利用契约转换程序生成契约检查程序,契约检查程序与面向方面的应用程序一起编译,生成包含契约检查的目标文件,从而在程序执行时,自动检测出方面与基础程序间的冲突以及方面与方面间冲突。该方案不破坏现有的应用程序,且无需重新设计编译器。通过一个实例表明该方案的可行性。

关 键 词:面向方面编程  方面冲突  自动检测  契约式设计  Java模型语言

Research of automatic checking to aspects conflict in aspect-oriented programming
HU Hong-yin , HE Cheng-wan.Research of automatic checking to aspects conflict in aspect-oriented programming[J].Computer Engineering and Design,2012,33(8):3064-3068.
Authors:HU Hong-yin  HE Cheng-wan
Affiliation:1(1.School of Computer,Wuhan Institute of Technology,Wuhan 430205,China; 2.Hubei Province Key Laboratory of Intelligent Robot,Wuhan Institute of Technology,Wuhan 430073,China)
Abstract:In order to solute the problem of aspects conflict in aspect-oriented programming,based on the design by contract,a solution of automatic checking to aspects conflict is proposed after analyzing the existed approach.JML(Java modeling language) is used to annotate contracts for base program and aspect based on design document.Contract checking program is created by contract transformation program,which is compiled with aspect oriented program by compiler,and the object files containing contract checking are created.The conflicts between base program and aspect and the conflicts between aspect and aspect are automatic found at run time.The solution in this paper need not modify aspect oriented application,and need not design new compiler.An example is given to prove the practicability of the solution at the end.
Keywords:aspect-oriented programming  aspect conflict  automatic checking  design by contract  Java modeling language
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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