Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java EE 综合讨论区
打印话题 寄给朋友 订阅主题 |
作者 | Re:哎呀,大家都重构,怎么少的了我呢? [Re:wes109] |
floater
Java Jedi 总版主 发贴: 3233 积分: 421 |
于 2004-05-25 12:46
2. create an interface to convert from an object in the list to an object in the map, to replace your buildConnectionFactory method(to hide this detail). Make sure all objects in your list implements this interface.
The interface is
Also, check this link: http://www.martinfowler.com/articles/injection.html
why edited on 2004-05-25 19:06
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler, Refactoring - Improving the Design of Existing Code |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
6728 | 哎呀,大家都重构,怎么少的了我呢? | wes109 | 1182 | 2004-05-25 09:19 |
5331 | Re:哎呀,大家都重构,怎么少的了我呢? | wes109 | 29 | 2004-05-25 10:41 |
5389 | Re:哎呀,大家都重构,怎么少的了我呢? | Jove | 1581 | 2004-05-25 11:42 |
6395 | Re:哎呀,大家都重构,怎么少的了我呢? | floater | 1078 | 2004-05-25 12:46 |
5359 | Re:哎呀,大家都重构,怎么少的了我呢? | floater | 101 | 2004-05-25 23:22 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |