public abstract class WeakEventBroker extends EventBroker
WeakHashMap. This means
that such listeners can be garbage collected, even if they are still brokered.| Constructor and Description |
|---|
WeakEventBroker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addListener(EventListener listener) |
protected Collection<EventListener> |
backing() |
static void |
main(String[] argv) |
void |
notifyForEvent(Event event)
Only adds synchronization, because backing is not concurrency proof.
|
void |
removeListener(EventListener listener) |
String |
toString() |
canBrokerForEvent, canBrokerForListener, equals, getListeners, hashCode, notifyEventListenerprotected Collection<EventListener> backing()
backing in class EventBrokerpublic boolean addListener(EventListener listener)
addListener in class EventBrokerpublic void removeListener(EventListener listener)
removeListener in class EventBrokerpublic void notifyForEvent(Event event)
notifyForEvent in class EventBrokerpublic String toString()
toString in class EventBrokerpublic static void main(String[] argv)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}