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

您没有登录

» Java开发网 » Design Pattern & UML  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:关于Mediator模式的一点想法 [Re:jameszhang]
zyzhang

Explorer



发贴: 155
积分: 30
于 2004-12-20 21:05 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
I think mediator contributes on the promotion of the complex of many to many relationship. It encapsulates the communication between other objects. On the other hand, Observer design pattern handle one-to-many relationship by introducing "observer" and "subject" objects. From reusability point of view, Observer is easier than Mediator.

Actually, you can see the idea of Mediator design pattern applied in many places, such as j2ee session facade, enforce the relational integrity,and ect.

Command design pattern generally specifies a sender-receiver connection with a subclass through interface. Instead, Mediator makes senders and receivers reference each other indirectly.




话题树型展开
人气 标题 作者 字数 发贴时间
16399 关于Mediator模式的一点想法 jameszhang 76 2004-12-03 15:46
13897 Re:关于Mediator模式的一点想法 floater 413 2004-12-03 23:31
13964 Re:关于Mediator模式的一点想法 WeiterWay 133 2004-12-07 10:39
13903 Re:关于Mediator模式的一点想法 jameszhang 230 2004-12-07 10:53
13948 Re:关于Mediator模式的一点想法 WeiterWay 111 2004-12-07 10:57
14117 Re:关于Mediator模式的一点想法 yamakasy 274 2004-12-07 12:16
13888 Re:关于Mediator模式的一点想法 jameszhang 274 2004-12-07 12:22
13844 Re:关于Mediator模式的一点想法 WeiterWay 94 2004-12-07 11:00
14008 Re:关于Mediator模式的一点想法 yamakasy 204 2004-12-07 12:19
13843 Re:关于Mediator模式的一点想法 WeiterWay 192 2004-12-07 12:43
13864 Re:关于Mediator模式的一点想法 floater 298 2004-12-07 23:37
13855 Re:关于Mediator模式的一点想法 jameszhang 298 2004-12-08 08:01
13733 Re:关于Mediator模式的一点想法 floater 118 2004-12-08 23:47
15041 Re:关于Mediator模式的一点想法 zyzhang 685 2004-12-20 21:05

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