基于.net反射机制的插件技术的研究  被引量:1

Plug-in Technology Research Based on .Net Reflection

在线阅读下载全文

作  者:许宁[1] 李建[1] 

机构地区:[1]西南石油大学计算机科学学院,四川新都610500

出  处:《计算机光盘软件与应用》2011年第21期167-168,共2页Computer CD Software and Application

摘  要:基于插件技术的软件架构将软件分为宿主程序、插件和接口三个部分,宿主程序和插件通过接口契约进行通信,通过新增插件以及扩展原有插件的方法来实现软件功能的扩展及修改。本文以.NET为开发平台,研究了如何使用动态加载程序集、反射、晚期绑定这几种反射机制的核心方法进行插件加载、动态发现和使用插件中的类型及方法并且实例化插件,为构建一种可以灵活扩展的应用程序提供了解决思路。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.

关 键 词:.NET 插件 反射 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象