![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
yes,I first used observer and observable for event notification and realised that my program is unreadable and I changed to generating my own event types.But then I realised my listener interface bloated and finally I used a mediator class which encapsulated all event related information and which has methods to change the event data and it has a methods to register list of listeners for each eventtype whom it notifies when an event data changes.It would be nice if you can elaborate the mediator with observer (observer can have a hash table to store the source listener coupling as suggested in gang of four) and many different ways of doing the notification. I think we can also use reflection mechanism to notify
Replies:
|
Sponsored Links
|