The Artima Developer Community
Sponsored Link

Source?

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:

Source?

Posted by Scott Ganyo on 18 Aug 1998, 6:39 AM

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.

Scott



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us