[1]戚荣志 王志坚.基于DI模式对Struts框架的扩展研究[J].计算机技术与发展,2006,(09):38-40.
 QI Rong-zhi,WANG Zhi-jian.Research on Extension of Struts Framework Based on DI Pattern[J].,2006,(09):38-40.
点击复制

基于DI模式对Struts框架的扩展研究()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2006年09期
页码:
38-40
栏目:
智能、算法、系统工程
出版日期:
1900-01-01

文章信息/Info

Title:
Research on Extension of Struts Framework Based on DI Pattern
文章编号:
1673-629X(2006)09-0038-03
作者:
戚荣志 王志坚
河海大学计算机及信息工程学院
Author(s):
QI Rong-zhi WANG Zhi-jian
School of Computer & Information Engineering, Hehai University
关键词:
控制反转依赖注入组件Struts框架
Keywords:
inversion of control dependency injection component Struts framework
分类号:
TP311
文献标志码:
A
摘要:
为了解决使用标准Struts框架开发程序时所带来的组件之间的耦合程度比较高的缺点,在标准Struts框架中引入了Dependency Injection(DI)模式。在介绍了DI模式的基本原理和3种实现类型之后,基于该模式对标准的Struts1.2框架进行了扩展,主要加入了设值方法注入功能。扩展框架实现了对Action Form Bean、数据库连接和一般对象的注入。在实际项目中基于此扩展框架进行了软件开发,发现该框架降低了系统的组件之间的耦合,简化了对单个组件的单元测试,效果非常明显
Abstract:
In order to solve the shortcoming of the higer coupling between the components while developing with the standard Struts framework, the article intorduces the Dependency Injection (DI) pattern in it. This paper makes a detailed introduction on the basic principle of the DI pattern and its three types of implementation, and extends the standard Struts 1.2 framework by adding the setter injection. The extended framework implements the function of injecting ActionFrom Bean, database connection and general objects. This extended framework has been used to develop a software project. During the development, have found that this framework reduced the coupling between the components of the system greatly, simplified the unit test of the individual component. The result is very obvious

相似文献/References:

[1]徐金宝 解芳 吴美红 李升.轻量级Java EE框架下软件测试的应用研究[J].计算机技术与发展,2009,(09):115.
 XU Jin-bao,XIE Fang,WU Mei-hong,et al.Research on Software Testing in Light - Weight Java EE Framework[J].,2009,(09):115.
[2]李腊元 徐鹏.基于MVC模式的JSF,Spring和Hibernate整合[J].计算机技术与发展,2008,(03):46.
 LI La-yuan,XU Peng.Conbination of JSF, Spring and Hibernate Based on MVC[J].,2008,(09):46.
[3]娄锋 孙涌.轻量级IoC容器的研究与设计[J].计算机技术与发展,2007,(01):91.
 LOU Feng,SUN Yong.Design and Implementation of Lightweight IoC Container[J].,2007,(09):91.
[4]黄永欣 周淑秋.用Spring搭建Web应用的轻量级解决方案[J].计算机技术与发展,2007,(01):189.
 HUANG Yong-xin,ZHOU Shu-qiu.The Lightweight Solution of Using Spring to Design Web Application[J].,2007,(09):189.
[5]周彩兰 李素芬 孙琳.Hibernate在Spring中的研究与应用[J].计算机技术与发展,2006,(10):62.
 ZHOU Cai-lan,LI Su-fen,SUN Lin.Research and Application of Hibernate in Spring[J].,2006,(09):62.
[6]吴刚 郝克刚 葛玮.控制反转模式及其应用[J].计算机技术与发展,2006,(02):171.
 WU Gang,HAO Ke-gang,GE Wei.Research of Inversion of Control Pattern and Its Applications[J].,2006,(09):171.
[7]魏学松 张育平.IOC框架的研究与设计[J].计算机技术与发展,2006,(03):213.
 WEI Xue-song,ZHANG Yu-ping.Research and Realization of IOC Framework[J].,2006,(09):213.
[8]仲红艳.控制反转技术分析[J].计算机技术与发展,2006,(11):59.
 ZHONG Hong-yan.An Analysis of Inversion of Control[J].,2006,(09):59.

备注/Memo

备注/Memo:
戚荣志(1980-),男,江苏兴化人,助教.硕士研究生,研究方向为分布式对象技术、软件复用技术;王志坚,教授,博士生导师,博士,研究方向为分布式对象技术、软件复用技术、网络软件系统集成技术
更新日期/Last Update: 1900-01-01