public class ListenersMap<Key> extends Object
Constructor and Description |
---|
ListenersMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(Key key,
IListener listener) |
Logger |
getLog() |
boolean |
hasListeners()
Notice that "hasListeners" may report true even if there are no listeners registered here (because
of weak references).
|
boolean |
isListening(IListener listener) |
boolean |
isListening(Key key,
IListener listener) |
void |
notify(Key key,
Listeners.ListenerNotifier<IListener> notifier) |
void |
notify(Listeners.ListenerNotifier<IListener> notifier) |
boolean |
notifySafe(Key key,
Listeners.ListenerNotifier<IListener> notifier,
Logger exceptionLog) |
boolean |
notifySafe(Listeners.ListenerNotifier<IListener> notifier,
Logger exceptionLog) |
void |
remove(IListener listener) |
void |
remove(Key key,
IListener listener) |
void |
setLog(Logger log,
String name) |
public Logger getLog()
public boolean isListening(IListener listener)
public void remove(IListener listener)
public void notify(Listeners.ListenerNotifier<IListener> notifier)
public void notify(Key key, Listeners.ListenerNotifier<IListener> notifier)
public boolean notifySafe(Listeners.ListenerNotifier<IListener> notifier, Logger exceptionLog)
public boolean notifySafe(Key key, Listeners.ListenerNotifier<IListener> notifier, Logger exceptionLog)
public boolean hasListeners()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.