Re: Thoughts on EventManager & async posting

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Nov 26 2003 - 22:07:35 EST

  • Next message: Holger Hoffstätte: "Re: Thoughts on EventManager & async posting"

    On Nov 26, 2003, at 4:21 PM, Andrus Adamchik wrote:

    > 1. Instead of postEvent(..) and postEvent(...,boolean), I suggest self
    > explanatory "postNow", "postLater" methods.
    >
    > 2. Change "addListener" to throw a runtime exception instead of
    > NoSuchMethodException. This will make the code cleaner. Currently I am
    > writing a small scope/cayenne Swing application (see
    > andrus-sandbox/examples/HRSwingBrowser), and having to wrap all
    > "addListener" calls in try/catch is a real hassle, especially since
    > most listeners implement an interface known upfront, so "catch" block
    > usually looks like that:

    Also I'd like to change EventListener argument in 'addListener' to be
    Object, since I am already running into trouble with that when using
    Scope framework. Their listeners do not extend EventListener.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Nov 26 2003 - 22:07:40 EST