期刊文献+

AOP中方面冲突自动检测方法研究

Research of automatic checking to aspects conflict in aspect-oriented programming
下载PDF
导出
摘要 为了解决面向方面编程中的方面冲突问题,在分析现有解决方法的基础上,提出了一种基于契约式设计的方面冲突自动检测方案。根据设计文档使用JML给方面和基础程序标注契约,利用契约转换程序生成契约检查程序,契约检查程序与面向方面的应用程序一起编译,生成包含契约检查的目标文件,从而在程序执行时,自动检测出方面与基础程序间的冲突以及方面与方面间冲突。该方案不破坏现有的应用程序,且无需重新设计编译器。通过一个实例表明该方案的可行性。 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 au tomatic 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.
出处 《计算机工程与设计》 CSCD 北大核心 2012年第8期3064-3068,共5页 Computer Engineering and Design
基金 国家自然科学基金项目(60873024) 湖北省自然科学基金项目(2009CDB293)
关键词 面向方面编程 方面冲突 自动检测 契约式设计 Java模型语言 aspect-oriented programming aspect conflict automatic checking design by contract Java modeling language
  • 相关文献

参考文献7

  • 1顾海波,卢炎生.面向方面软件测试的研究进展[J].计算机科学,2008,35(9):266-269. 被引量:2
  • 2陈凌鹤,毛晓光,雷晏,王承松.方面单元测试框架的设计与实现[J].计算机工程与应用,2009,45(1):80-85. 被引量:1
  • 3Tessier F, Badri M, Badri L. A model-based detection of conflicts between crosscutting concerns; Towards a formal approach[C]. International Workshop on Aspect-Oriented Software Development. China: Beijing University, 2004.
  • 4Durr P, Bergmans L, Aksit M. Reasoning about semantic conflicts between aspects[C]. Brussels, Belgium: European Interactive Workshop on Aspects in Software, 2005.
  • 5Mussbacher G, Whittle J, Amyot D. Modeling and detecting semantic-based interactions in aspect-oriented scenarios [J]. Requirements Engineering, 2010, 15 (2): 197-214.
  • 6Chen X, Ye N, Ding W. A formal approach to analyzing interference problems in aspect oriented designs [C]. Shanghai, China:Third International Symposium, UTP, 2010.
  • 7林佳一,刘进,何克清.面向对象的契约式程序设计[J].计算机应用,2005,25(4):796-798. 被引量:3

二级参考文献73

  • 1葛祖全,王华,马军.解决聚合组播的自适应拉格朗日松弛算法[J].计算机应用,2007,27(4):811-813. 被引量:1
  • 2JUnit4.0[EB/OL].[2008-05].http://www.junit.org.
  • 3周予滨.软件测试[M].北京:机械工业出版社,2007.
  • 4Aspect-oriented software development community & conference[EB/OL].[2008-05].http://www.aosd.net.
  • 5程利剑.AspectJ Cookbook中文版[M].北京:清华大学出版社,2006.
  • 6Alexander R T,Bieman J M,Andrews A A.Towards the systematic testing of aspect-oriented programs,Technical Report CS-4-105[R].Department of Computer Science,Colorado State University,Fort Collins,Colorado,2004.
  • 7Ceccato M,Tonella P,Ricca F.Is AOP code easier or harder to test than OOP code?[C]//On-line Proceedings of the First Workshop on Testing Aspect-Oriented Programs(WTAOP 2005).March,Chicago,Illinois,2005.
  • 8Zhao J.Data-flow-based unit testing of aspect-oriented programs[C]// Proe 27th Annual IEEE International Computer Software and Applications Conference (COMPSAC'2003),Dallas,Texas,December 2003:188-197.
  • 9Zhao J.Tool support for unit testing of aspect-oriented software[C]// OOPSLA'2002 Workshop on Tools for Aspect-Oriented Software Development,Seattle,WA,USA,November 2002.
  • 10Zhao Jianjun.Control-flow analysis and representation of aspectoriented programs[C]//Proc 6th Inernational Conference on Quality Software(QSIC'06),Beijing,China,October 26-28,2006:38-48.

共引文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部