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:
> Bill, > I wish you (and JavaSoft) had taken this idea just one step further. There is still one piece missing from this idiom, specifically: An EventSource interface! > For example, in your Telephone example, it would be nice to have a TelephoneEventSource interface. That way, when I want to use this instance of the idiom again, the compiler will force me to make sure that I've implemented all the methods correctly. Also, this further abstracts my listener from the implementation object by allowing it to only rely on the generic interface. Yes, this is a good idea that someone also e-mailed me about. As you mention, using an event source interface would make bv
Replies:
|
Sponsored Links
|