E - is the generic event type.protected static class AbstractEventBus.EventDispatcher<E> extends Object
EventListeners of a particular event
type.| Modifier and Type | Field and Description |
|---|---|
private Collection<AbstractEventBus.EventListenerContainer<E>> |
containerList |
private AbstractEventBus.EventDispatcher<? super E> |
parentDispatcher |
| Constructor and Description |
|---|
EventDispatcher(AbstractEventBus.EventDispatcher<? super E> parent,
CollectionFactory<?> collectionFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleEvent(E event,
Collection<Throwable> errors) |
private final AbstractEventBus.EventDispatcher<? super E> parentDispatcher
handleEvent(Object, Collection)private final Collection<AbstractEventBus.EventListenerContainer<E>> containerList
handleEvent(Object, Collection)public EventDispatcher(AbstractEventBus.EventDispatcher<? super E> parent, CollectionFactory<?> collectionFactory)
parent - is the AbstractEventBus.EventDispatcher responsible for the super-class or null if this is the root
AbstractEventBus.EventDispatcher responsible for Object.collectionFactory - is the CollectionFactory used to create Collections e.g. for the
AbstractEventBus.EventListenerContainers.public boolean handleEvent(E event, Collection<Throwable> errors)
event - is the Event to dispatch.errors - is a Collection where potential exceptions thrown by
event handlers will be added.true if the event has actually been dispatched, false otherwise.EventListener.handleEvent(Object)Copyright © 2001–2016 mmm-Team. All rights reserved.