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
FENG Xin-yang1,CUI Kai2,SHEN Jian-jing1
Received:
Revised:
Online:
Published:
Contact:
冯新扬1,崔 凯2,沈建京1
通讯作者:
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模式来设计面向插件的应用框架的方法。
FENG Xin-yang1,CUI Kai2,SHEN Jian-jing1. Research and implementation of plug-in oriented application framework[J]. Computer Engineering and Applications, 2009, 45(10): 89-91.
冯新扬1,崔 凯2,沈建京1. 面向插件的应用框架研究与实现[J]. 计算机工程与应用, 2009, 45(10): 89-91.
0 / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://cea.ceaj.org/EN/10.3778/j.issn.1002-8331.2009.10.027
http://cea.ceaj.org/EN/Y2009/V45/I10/89