Constructor and Description |
---|
SimpleEventBus() |
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).
|
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
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.