摘要
面向插件的应用框架具有易于复用和动态扩展的特性。为了实现框架中插件的动态加载与替换,可以采用Service Locator模式解除插件接口调用者与插件实例间的耦合。通过一个实例介绍了如何改进Service Locator模式使之更好地管理大量的细粒度短生命周期的插件对象,并展示了采用改进的Service Locator模式来设计面向插件的应用框架的方法。
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.
出处
《计算机工程与应用》
CSCD
北大核心
2009年第10期89-91,共3页
Computer Engineering and Applications
基金
国家自然科学基金No.600332020~~
关键词
插件
应用框架
服务定位器模式
plug-in application framework service locator pattern