Constructor and Description |
---|
ResettableEventBus(EventBus wrappedBus) |
Modifier and Type | Method and Description |
---|---|
<H extends EventHandler> |
addHandler(Class<? extends Event<H>> eventClass,
H handler) |
<H extends EventHandler> |
fireEvent(Event<H> event)
Fires the event on the bus (synchronously).
|
void |
reset()
Remove all handlers that have been added through this wrapper.
|
public ResettableEventBus(EventBus wrappedBus)
public <H extends EventHandler> HandlerRegistration addHandler(Class<? extends Event<H>> eventClass, H handler)
addHandler
in interface EventBus
public <H extends EventHandler> void fireEvent(Event<H> event)
EventBus
public void reset()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.