首页 | 本学科首页   官方微博 | 高级检索  
     

轻量级IoC容器的研究与设计
引用本文:娄锋,孙涌.轻量级IoC容器的研究与设计[J].微机发展,2007,17(1):91-93.
作者姓名:娄锋  孙涌
作者单位:苏州大学计算机科学与技术学院 江苏苏州215006
摘    要:研究了支持依赖注入的IoC容器的设计问题。其目的是减小容器中组件或对象间的耦合度,应用程序中的组件在运行时不再主动调用其协作组件或协作对象,而是由容器在程序运行期间动态地将应用程序所需的组件或对象注入到应用程序中。与当前存在的IoC容器相比,它能够实现更多的组件注册方式,组件的管理方式也更灵活,基于IoC容器进行的开发可以明显减小对象间及对象和服务间的耦合度,便于组件的重用,缩短程序开发的周期,构建清晰、简洁的解决方案。

关 键 词:翻转控制  依赖注入  轻量级容器
文章编号:1673-629X(2007)01-0091-03
修稿时间:2006年4月18日

Design and Implementation of Lightweight IoC Container
LOU Feng,SUN Yong.Design and Implementation of Lightweight IoC Container[J].Microcomputer Development,2007,17(1):91-93.
Authors:LOU Feng  SUN Yong
Abstract:Study the design and implementation of IoC containers.It aimed at reducing applications coupling between application components in operation, no longer use their own initiative in collaboration components or collaborators,on the contrary the container allows the configuration and wiring together of objects using dependency injection.Compared to the existing IoC containers it can achieve more components registered types,components management are more flexible.The use of IoC containers can clearly reduce the coupling between services for ease of components.The development of software design is shorten,and will give developers a clear and concise solution.
Keywords:inverion of control  dependency injection  lightweight container  
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号