本文已被:浏览 1552次 下载 2809次
Received:July 15, 2011 Revised:August 22, 2011
Received:July 15, 2011 Revised:August 22, 2011
中文摘要: 从业务层的角度分析了传统资源管理系统在可扩展性和可维护性方面的不足,并借此提出了所要开发的资源管理系统。利用设计模式的思想,对复杂的业务层进行重新设计,引进了代理模式、简单工厂模式、访问者模式、双重分派和策略模式,使得文件交换系统功能模块组件和资源处理算法模块之间的交互关系间接化。业务层功能模块之间通过业务配置信息,调用相应的组件来完成一项业务,使每个业务组件之间不再发生直接联系,因此一个业务组件的更改不会影响到其它业务组件。采用这种开发方式基本上实现了开-闭原则(OCP),降低了系统的耦合度,增加了系统
Abstract:This article analyses the deficiencies of scalability and maintainability of the traditional resource management system from the perspective of the business layer of the system, and to put forward this paper is to develop resource management system. In this paper, the complexity of the business layer is to be re-designed through the design pattern idea, the introduction of a proxy pattern, a simple factory pattern, visitor pattern, double dispatch pattern and strategy pattern makes file exchange system the indirect interactions of function module components and resources processing algorithms. Functional modules of the business layer through configuration information call the appropriate components to complete a business, so that each business is no longer a direct link between the components, so a business component of the change will not affect the other business group pieces. With this development approach is basically to achieve the open-Closed Principle (OCP), reducing the system's coupling to increase the reusability of the system modules, and to build a scalable, easy to maintain business systems.
keywords: design patterns software maintenance decoupling
文章编号: 中图分类号: 文献标志码:
基金项目:
引用文本:
姚战伟,孙咏,唐洪刚.设计模式在文件交换系统资源管理中的应用.计算机系统应用,2012,21(4):14-17,35
YAO Zhan-Wei,SUN Yong,TANG Hong-Gang.Application of Design Patterns in Resource Management of the File Exchange System.COMPUTER SYSTEMS APPLICATIONS,2012,21(4):14-17,35
姚战伟,孙咏,唐洪刚.设计模式在文件交换系统资源管理中的应用.计算机系统应用,2012,21(4):14-17,35
YAO Zhan-Wei,SUN Yong,TANG Hong-Gang.Application of Design Patterns in Resource Management of the File Exchange System.COMPUTER SYSTEMS APPLICATIONS,2012,21(4):14-17,35