首页 | 本学科首页   官方微博 | 高级检索  
     

基于.net反射机制的插件技术的研究
引用本文:许宁,李建.基于.net反射机制的插件技术的研究[J].计算机光盘软件与应用,2011(21).
作者姓名:许宁  李建
作者单位:西南石油大学计算机科学学院,四川新都,610500
摘    要:基于插件技术的软件架构将软件分为宿主程序、插件和接口三个部分,宿主程序和插件通过接口契约进行通信,通过新增插件以及扩展原有插件的方法来实现软件功能的扩展及修改。本文以.NET为开发平台,研究了如何使用动态加载程序集、反射、晚期绑定这几种反射机制的核心方法进行插件加载、动态发现和使用插件中的类型及方法并且实例化插件,为构建一种可以灵活扩展的应用程序提供了解决思路。

关 键 词:.NET  插件  反射

Plug-in Technology Research Based on .Net Reflection
Abstract:According to the software framework of plug-in technology, soft-ware can be divided into three parts:host program,plug-in and interface,Host program and plug-in communicate by interface contracts,with the new plug-in and the expanded original plug-in,the expansion and modification of software function can be accomplished.Based on.NET development platform,this paper researches how to use dynamic loading assembly, reflection and late binding this three core methods of reflection mechanism to do plug-in loading,dynamic discovery, plug-in using and instantiation,provides a solution to construct a kind of application program which can expand flexibly.
Keywords:,NET,Plug-in,Reflection
本文献已被 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号