Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Design Pattern & UML  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:IOC和Dependency Injection [Re:hesanxu512]
zerol

Soul of New Machine



发贴: 593
积分: 61
于 2004-10-26 00:57 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
写得不错。
hesanxu512 wrote:
考虑到上述问题,自然地想到应该抽象出一个接口,来消除Button对Lamp的依赖,于是设计如下:
some code missing?
这样,我们倒置了Button对Lamp的依赖关系,使得Lamp依赖于



★☆ The Truth Lies Somewhere In The Middle ☆★ 

话题树型展开
人气 标题 作者 字数 发贴时间
11208 IOC和Dependency Injection hesanxu512 2600 2004-10-26 00:40
9662 Re:IOC和Dependency Injection zerol 175 2004-10-26 00:57
9583 Re:IOC和Dependency Injection floater 212 2004-10-26 01:08
9738 Re:IOC和Dependency Injection Jove 74 2004-10-26 12:23
9520 Re:IOC和Dependency Injection hesanxu512 39 2004-10-26 12:51
9790 Re:IOC和Dependency Injection think 406 2004-10-26 19:38
9451 Re:IOC和Dependency Injection hesanxu512 93 2004-10-26 22:11
10237 Re:IOC和Dependency Injection floater 2357 2004-10-27 01:26

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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