info.magnolia.event
Interface EventBus

All Known Implementing Classes:
ResettableEventBus, SimpleEventBus

public interface EventBus

Event bus which fires events to a set of registered handlers.

See Also:
Event, EventHandler, HandlerRegistration

Method Summary
<H extends EventHandler>
HandlerRegistration
addHandler(Class<? extends Event<H>> eventClass, H handler)
           
<H extends EventHandler>
void
fireEvent(Event<H> event)
          Fires the event on the bus (synchronously).
 

Method Detail

addHandler

<H extends EventHandler> HandlerRegistration addHandler(Class<? extends Event<H>> eventClass,
                                                        H handler)

fireEvent

<H extends EventHandler> void fireEvent(Event<H> event)
Fires the event on the bus (synchronously).



Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.