期刊文献+

IoC模式及其应用

IoC pattern and it's practice
下载PDF
导出
摘要 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.
作者 周洪斌
机构地区 沙洲职业工学院
出处 《微型机与应用》 2016年第6期82-84,共3页 Microcomputer & Its Applications
基金 江苏省"青蓝工程"项目(苏教师(2014)23号) 2015年江苏省高校大学生创新创业训练计划立项项目(201511288009Y)
关键词 依赖倒置原则 控制反转 依赖注入 UNITY dependency inversion principle inversion of control dependency injection Unity
  • 相关文献

参考文献4

二级参考文献13

  • 1李必信.面向对象软件耦合的度量和验证[J].东南大学学报(自然科学版),2006,36(3):446-451. 被引量:5
  • 2刘博,胡飞,陆伟.使用Visual Studio模板和策略来统一和维护项目的框架结构[J].科学技术与工程,2007,7(13):3133-3135. 被引量:3
  • 3What is PicoContainer ? [EB/OL]. [2010-06 -24]. http : / / www. pieoeontainer, org/.
  • 4MARTINRC.敏捷软件开发:原则、模式与实践[M].邓辉,孙鸣,译.北京:人民邮电出版社,2008:116-121.
  • 5GAMMAE,HELMR,JOHNSONR,甜以设计模式--可复用面向对象软件的基础[M].李英军,马晓墨,蔡敏,等译.北京:机械工业出版社,2000.
  • 6Microsoft Unity Application Block 2.0 [ EB/OL]. [ 2010 - 06 - 24]. http://msdn, microsoft, com/en-us/library/ff663144, aspx.
  • 7许鹏.Autofac介绍[DB/OL].http://www.cnblogs.com/xupng/archive/2011/07//12/2104766.html,2011-07-12.
  • 8深潭.Autofac在MVC3中的使用[DB/OL].http://www,.cnblogs.com/dbasys/archive/2012/07/19/2598691.html,2012-01-19.
  • 9薄奇,许林英.Spring框架中IoC的实现[J].微处理机,2008,29(1):147-149. 被引量:15
  • 10罗海丽.IOC/DI原理浅析[J].中国高新技术企业,2008(17):158-158. 被引量:2

共引文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部