T- the event class this handler can handle
public final class WeakEventHandler<T extends Event> extends Object implements EventHandler<T>
WeakEventHandlerproxy, the proxy itself references the original handler only weakly and so doesn't prevent it from being garbage collected. Until this weak reference is broken, any event notification received by the proxy is forwarded to the original handler.
|Constructor and Description|
Creates a new instance of
|Modifier and Type||Method and Description|
Forwards event notification to the associated event handler.
Indicates whether the associated event handler has been garbage collected.
public boolean wasGarbageCollected()
WeakEventHandleris no longer necessary.
trueif the associated handler has been garbage collected,
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.