Computer Engineering and Applications ›› 2009, Vol. 45 ›› Issue (10): 89-91.DOI: 10.3778/j.issn.1002-8331.2009.10.027

• 研发、设计、测试 • Previous Articles     Next Articles

Research and implementation of plug-in oriented application framework

FENG Xin-yang1,CUI Kai2,SHEN Jian-jing1   

  1. 1.Science Institute of Information Engineering University,Zhengzhou 450001,China
    2.College of Software,Beihang University Beijing 100081,China
  • Received:2008-02-20 Revised:2008-04-23 Online:2009-04-01 Published:2009-04-01
  • Contact: FENG Xin-yang

面向插件的应用框架研究与实现

冯新扬1,崔 凯2,沈建京1   

  1. 1.信息工程大学 理学院,郑州 450001
    2.北京航天航空大学 软件学院,北京 100081
  • 通讯作者: 冯新扬

Abstract: Plug-in oriented application framework can be easily reused and dynamically extended.To achieve dynamic loading and substitution of plug-in in application framework,Service Locator pattern is introduced to decouple clients from the implementation of plug-ins.A case study illustrates how to introduce a revised Service Locator pattern,which works better with large amount of fine-grained short-lived plug-in objects,to a plug-in oriented application framework design.

摘要: 面向插件的应用框架具有易于复用和动态扩展的特性。为了实现框架中插件的动态加载与替换,可以采用Service Locator模式解除插件接口调用者与插件实例间的耦合。通过一个实例介绍了如何改进Service Locator模式使之更好地管理大量的细粒度短生命周期的插件对象,并展示了采用改进的Service Locator模式来设计面向插件的应用框架的方法。