检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《计算机应用与软件》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[自动化与计算机技术—计算机科学与技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.147.46.129