基于容器的IoC控制反转模式的研究  被引量:5

ON INVERSION OF CONTROL PATTERN BASED ON CONTAINERS

在线阅读下载全文

作  者:杨扬[1] 侯红[1] 郝克刚[1] 

机构地区:[1]西北大学信息学院,陕西西安710127

出  处:《计算机应用与软件》2009年第4期17-19,共3页Computer Applications and Software

基  金:国家863计划资助项目(2004AA115090)。

摘  要:目前控制反转IoC(Inversion of Control)模式广泛应用于各种应用程序框架,像Spring、PicoContainer和Avalon等这些流行的轻量级容器,都分别支持不同方式的控制反转模式的实现。首先介绍控制反转模式的设计思想及依赖注入、关注分离、依赖倒置原则等相关概念,并通过三个具体的实例就控制反转模式在以上三种框架下的具体实现进行分析,比对控制反转模式在适应各自容器需求的基础上所体现的优点和不足之处,探讨其优劣,展望其发展前景。IoC (Inversion of Control) pattern is widely used in various program application frameworks, such as Spring, PicoContainer and Avalon, etc. , these popular lightweight containers at present all support the realisation of IoC pattern of different ways respectively. This paper will firstly give a brief introduction to the design idea of IoC pattern, then extends to its related eoneepts of Dependency Injection, Separation of Concerns and Dependency Inversion Principle, also there are three concrete instances presented in the paper, through them the speeitic realizations of IoC within three frameworks listed above are analyzed, the advantages and disadvantages the IoC pattern embodied are compared based on its adaptation to each containers" demand, their superior and inferior degree are discussed, and their development prospects are previewed.

关 键 词:依赖注入 依赖倒置原则 分离关注 

分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论] TQ053.2[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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