Re: EventSubject as WeakHashMap key in EventManager

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Nov 26 2003 - 15:59:32 EST

  • Next message: Andrus Adamchik: "Re: Thoughts on EventManager & async posting"

    On Nov 25, 2003, at 6:20 AM, Holger Hoffstätte wrote:

    > I made this intentionally
    > so that people don't have to unregister their listeners; if we would
    > rely
    > on explicit unregistering, I can guarantee that people will 'forget'
    > and
    > create 'leaks'. Making the registration depend on the subject's
    > lifecycle
    > solves this, unless I'm forgetting something.

    Totally. I agree that having a "weak" subject gives more flexibility to
    the users to customize event queue behavior (even if it comes at the
    expense of the time spent reading and understanding the manual :-)). So
    be it.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Nov 26 2003 - 15:59:37 EST