一种系统化面向对象的重构与测试策略及其在JHotDraw中的应用
A Systematic Aspect-Oriented Refactoring and Testing Strategy, and its Application to JHotDraw
摘要:
面向方面编程的目的是实现更好的模块化系统的横切关注点,以提高其关键的质量属性,如可演化性和可重用性。因此,在现有的(遗留)软件系统中采用面向方面的技术是修复软件老化的兴趣。通过一种系统化的方法来确保安全和一致的迁移,将大大简化对现有系统进行重构以采用面向方面的方法。在本文中,我们提出了一个重构和测试策略,支持这样的方法,并考虑问题的行为保护和(增量)集成的面向方面的解决方案与原始系统。该策略应用于JHotDraw开源项目,并说明了一组选定的关注。最后,我们抽象的案例研究,并提出了一些通用的重构,这有助于一个增量的面向方面的重构过程,并关联特定类型的横切关注的模型和功能的方面语言。本文的贡献是在该地区的支持迁移到面向方面的解决方案,并支持方面的语言,更适合这种迁移的发展。
英文摘要:
Aspect oriented programming aims at achieving better modularization for a system's crosscutting concerns in order to improve its key quality attributes, such as evolvability and reusability. Consequently, the adoption of aspect-oriented techniques in existing (legacy) software systems is of interest to remediate software aging. The refactoring of existing systems to employ aspect-orientation will be considerably eased by a systematic approach that will ensure a safe and consistent migration. In this paper, we propose a refactoring and testing strategy that supports such an approach and consider issues of behavior conservation and (incremental) integration of the aspect-oriented solution with the original system. The strategy is applied to the JHotDraw open source project and illustrated on a group of selected concerns. Finally, we abstract from the case study and present a number of generic refactorings which contribute to an incremental aspect-oriented refactoring process and associate particular types of crosscutting concerns to the model and features of the employed aspect language. The contributions of this paper are both in the area of supporting migration towards aspect-oriented solutions and supporting the development of aspect languages that are better suited for such migrations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。