摘要
软件演化通常需要向系统的各个模块中添加新的通用功能,一般是在每个有需求的模块中直接插入相应的功能代码,但这种做法工作量大、出错率高,同时容易破坏系统的结构.为此介绍了一种基于面向方面的编程(AOP)的软件演化策略,该策略通过使用关注点,向演化系统中注入新的代码,而不改变系统的结构.除此,还介绍了基于此方法的支持软件演化所实现的一个工具,并通过实例对该方法加以了验证和说明.该方法只是应用了AOP的思想,因此不局限于支持AOP的程序设计语言,对于一般的面向对象的程序设计语言都适用.
Software system evolution is often required to add some new public tunctions, be distributed in many components on the system. A normal method is to insert code into each corresponding class, which may be just a trivial task but may also increase the risk of introducing errors and destroy the structure of the system. To solve this problem, an aspect-oriented programming (AOP) based software evolution approach based on . NET is introduced. By using 'Joinpoints', the proposed approach can insert new code into the evolving system without any modifications to the existing class structures. A tool in AOP for supporting the system evolution was developed and illustrated in instances. The method can be used in general object-oriented programme design language because it only applies the idea of AOP.
出处
《大连理工大学学报》
EI
CAS
CSCD
北大核心
2007年第2期270-275,共6页
Journal of Dalian University of Technology