API REVIEW: Weak event handler

Richard Bair richard.bair at oracle.com
Tue Jun 12 13:01:00 PDT 2012

Hi Lubo,

> I also considered to define the WeakEventHandler as an interface which extends EventHandler, but adds no additional methods. Then leave it to event handler containers to reference such event handlers weakly. This has very simple and direct usage, but also its own problems. We can discuss it further if you find this solution preferred to the wrapper approach.

Extending WeakReference and lacking the public constructor did make me a little weak in the knees :-). What were the problems with WeakEventHandler being an interface?


More information about the openjfx-dev mailing list