摘要
针对信息化软件开发、使用和维护过程中需求不断变化,扩展系统功能导致原有设计构架混乱,以及维护过程中的代码遗留问题,提出了一种采用基于插件体系结构的"主题-服务-插件"模型对系统实行软件重构的应用方案。在不改变系统原有功能的前提下,采用适配器设计模式统一系统模块接口,并运用观察者设计模式的通信模型实现系统模块之间的正常交互,消除系统模块之间的深度耦合,改善系统构架。最后运用该方案对通用车辆维修管理系统实施重构,实践结果表明,重构后的通用车辆维修管理系统更具灵活性、可扩展性,更好地适应用户的需求变化,方便测试维护,节约了维护成本。
It iseasy to disrupt the originaldesign framework when expanding the informationization software's function because user's changing requirement during software development, use and maintenance, also there are some legacy codes in system maintenance.A refactoring solution with"subject-service-plug-in"model is provided, which based on plug-in architecture, with adapter pattern to unify system module interface, viewer pattern's traffic model to keep the system module normal communication.The solution eliminates the depth coupling between the system modules and improvement system's framework.The result indicated the system after refactoring get more flexibility, more extendibility, the solution can make system adapts user's demand change well, easy to maintain and test, and saves the maintenance cost.
出处
《计算机工程与设计》
CSCD
北大核心
2009年第23期5400-5403,共4页
Computer Engineering and Design
关键词
信息化
软件开发
插件
重构
模式
informationization
software development
plug-in
refactoring
pattern