IoC模式及其应用  

IoC pattern and it's practice

在线阅读下载全文

作  者:周洪斌[1] 

机构地区:[1]沙洲职业工学院,江苏张家港215600

出  处:《微型机与应用》2016年第6期82-84,共3页Microcomputer & Its Applications

基  金:江苏省"青蓝工程"项目(苏教师(2014)23号);2015年江苏省高校大学生创新创业训练计划立项项目(201511288009Y)

摘  要:IoC是一种优秀的组件解耦模式,而依赖注入是IoC最流行的实现方式。探讨了依赖注入的三种不同的实现方式:构造器注入、属性注入以及接口注入,并介绍了IoC容器Unity的基本使用方法。Inversion of control(IoC) is an excellent pattern of decoupling the software components which has dependency relationship with each other,and dependency injection(DI) is the most popular way to achieve IoC. This paper discusses about three kinds of DI,such as constructor injection,property injection and interface injection. Also this paper introduces the basic method of using Io C Unity container.

关 键 词:依赖倒置原则 控制反转 依赖注入 UNITY 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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