Skip to Content.
Sympa Menu

gang-of-4-patterns - RE: [gang-of-4-patterns] Multicast pattern

gang-of-4-patterns AT lists.siebelschool.illinois.edu

Subject: Design Patterns discussion

List archive

RE: [gang-of-4-patterns] Multicast pattern


Chronological Thread 
  • From: Ray Ye <rayye AT Catena.com>
  • To: "'Yehoram Shenhar'" <yshenhar AT powerloc.com>, gang-of-4-patterns AT cs.uiuc.edu
  • Subject: RE: [gang-of-4-patterns] Multicast pattern
  • Date: Wed, 19 Nov 2003 09:59:22 -0500
  • List-archive: <http://mail.cs.uiuc.edu/pipermail/gang-of-4-patterns/>
  • List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>

Hi Yehoram,

I have to agree that difference between multicast and observer is too
subtle. It depends on how you design the event handler's interface, whether
you use generic one (loosely typed, which encourage type checking, but more
stable with the new types of events), or strongly typed handler interface
(avoids if/else, but with every new event type added, you would have to
change the handler's interface).

It really depends on what kind of your application is. If you are
developing a framework type of thing, then you would want to use generic
event handler interface, since you can not foresee how the users of your
framework adding what kinds of events.

Another pattern you may take a look is "event channel", which derives from
observer, but totally decouples the sender and receiver, and uses "channel"
as the intermediate. You can also add "filter" to the channel, and allow
only the handler's interested events sent out.

Cheers,

Ray

-----Original Message-----
From: Yehoram Shenhar
[mailto:yshenhar AT powerloc.com]
Sent: Wednesday, November 12, 2003 12:20 PM
To:
gang-of-4-patterns AT cs.uiuc.edu
Subject: [gang-of-4-patterns] Multicast pattern


Hello,

Has anybody had any experience with the Multicast Pattern?
(http://www.research.ibm.com/designpatterns/pubs/multicast.html).

Are there any other patterns to keep an event-based system strongly typed?

Thanks,

Yehoram Shenhar

_______________________________________________
gang-of-4-patterns mailing list
gang-of-4-patterns AT cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/gang-of-4-patterns





Archive powered by MHonArc 2.6.16.

Top of Page