摘要
为了提高软件的复用度和扩展性,在参考设计模式和MVC框架的基础上,提出了一种基于自动化对象模型(AOM,Automatic Object Model)和插件(Plug-In)模式的轻量级框架(LFBAP,Lightweight Framework Based on AOM andPlug-In Pattern),并采用了Object-Z语言进行了形式化描述。其中,利用了观察者模式、事件冒泡机制设计AOM,为框架提供了一组可被订阅的对象事件接口;设计并实现了基于DLL的插件模式。应用结果表明,使用LFBAP框架开发某系统定制平台软件,可以很方便地对系统进行插件级的扩展,能有效地提高开发效率。
In order to improve the ability of software reuse and expansibility,a lightweight framework based on automatic object model(AOM) and plug-in was presented on the basis of design-pattern and MVC framework.A set of interfaces for framework was provided by the AOM which was designed with the idea of observer pattern and event bubble mechanism.Plug-in pattern was designed and implemented based on DLL.The experiment's result of a designing platform developed with the LFBAP shows that the efficiency is improved greatly and the expansibility of system can be realized by plug-in pattern.
出处
《计算机技术与发展》
2010年第10期54-57,61,共5页
Computer Technology and Development
基金
国家自然科学基金(60603029)
关键词
软件复用
框架
自动化对象模型
插件模式
轻量级
software reuse
framework
automatic object model
plug-in pattern
lightweight