摘要: 针对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
中图分类号:
仇书礼, 初佃辉, 孟凡超. 基于Spring的构件动态演化机制[J]. 计算机工程, 2012, 38(2): 69-71.
CHOU Shu-Li, CHU Dian-Hui, MENG Fan-Chao. Component Dynamic Evolution Mechanism Based on Spring[J]. Computer Engineering, 2012, 38(2): 69-71.