public abstract class EventBroker extends Object
| Constructor and Description |
|---|
EventBroker() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
addListener(EventListener listener) |
protected abstract Collection<EventListener> |
backing() |
abstract boolean |
canBrokerForEvent(Event event)
this method should return true if this event broker can broker for
events of this type.
|
abstract boolean |
canBrokerForListener(EventListener listener)
this method should return true if this broker can accept and propagate
events to the listener of this type.
|
boolean |
equals(Object o) |
Collection<EventListener> |
getListeners() |
int |
hashCode() |
protected abstract void |
notifyEventListener(Event event,
EventListener listener)
This method has two functions.
|
void |
notifyForEvent(Event event) |
abstract void |
removeListener(EventListener listener) |
abstract String |
toString() |
public abstract boolean canBrokerForListener(EventListener listener)
event instanceof <EventListener associated with this broker>listener - public abstract boolean canBrokerForEvent(Event event)
event instanceof <EvenType associated with this broker>event - protected abstract void notifyEventListener(Event event, EventListener listener) throws ClassCastException
event - listener - ClassCastExceptionpublic abstract boolean addListener(EventListener listener)
public abstract void removeListener(EventListener listener)
protected abstract Collection<EventListener> backing()
public final Collection<EventListener> getListeners()
public void notifyForEvent(Event event)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}