作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2012, Vol. 38 ›› Issue (2): 69-71. doi: 10.3969/j.issn.1000-3428.2012.02.022

• 软件技术与数据库 • 上一篇    下一篇

基于Spring的构件动态演化机制

仇书礼,初佃辉,孟凡超   

  1. (哈尔滨工业大学(威海)计算机科学与技术学院,山东 威海 264209)
  • 收稿日期:2011-07-22 出版日期:2012-01-20 发布日期:2012-01-20
  • 作者简介:仇书礼(1987-),男,硕士研究生,主研方向:软件工程,软件体系结构;初佃辉,副教授;孟凡超,副教授、博士
  • 基金资助:
    国家“863”计划基金资助项目(2008AA04Z101);“核高基”重大专项(2009ZX01045-001-002-4);山东省科技发展计划基金资助项目(2011GGX10108, 2010GGX10104, 2010GGX10116, 2010G ZX20126);威海市科技攻关计划基金资助项目(2011GGA00201109 22082212)

Component Dynamic Evolution Mechanism Based on Spring

QIU Shu-li, CHU Dian-hui, MENG Fan-chao   

  1. (School of Computer Science and Technology, Harbin Institute of Technology at Weihai, Weihai 264209, China)
  • Received:2011-07-22 Online:2012-01-20 Published:2012-01-20

摘要: 针对Spring开源框架不支持动态演化的问题,提出一种基于Spring的构件动态演化机制。在设计开发模式上,对系统进行面向业务逻辑和配置文件的模块化划分,在体系结构上,引入演化代理,对模块间调用进行解耦,模块调用由实例管理中心进行统一管理控制。在Spring框架中实现该机制,并通过计算Π值进行实验验证,结果表明,该机制可以使软件系统在运行期间实现演化,对系统效率基本无影响。

关键词: 构件, 动态演化, 控制反转, 解耦, 演化代理, 实例注册中心

Abstract: For the issue of that Spring, the open source framework does not support dynamic evolutions, this paper comes up with a component dynamic evolution mechanism based on Spring, from the view of the development mode and architecture of software system. This mechanism divides the system’s business logic and configuration files into many modules from the point of development mode. In the aspect of architecture, it leads in evolution agent to decouple the invoking among modules, while modules and their callings are managed and controlled uniformly by instance management center. This mechanism is implemented in the Spring framework, and it is proved by calculating the value of Π. Experimental results show that the mechanism can let system implement evolutions at run-time and does not influence the system efficiency.

Key words: component, dynamic evolution, inversion of control, decouple, evolution agent, instance registration center

中图分类号: