info.magnolia.event
Class SimpleEventBus

java.lang.Object
  extended by info.magnolia.event.SimpleEventBus
All Implemented Interfaces:
EventBus

@Singleton
public class SimpleEventBus
extends Object
implements EventBus

Event bus implementation. Inspired by com.google.gwt.event.shared.SimpleEventBus.

See Also:
EventBus

Constructor Summary
SimpleEventBus()
           
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEventBus

public SimpleEventBus()
Method Detail

addHandler

public <H extends EventHandler> HandlerRegistration addHandler(Class<? extends Event<H>> eventClass,
                                                               H handler)
Specified by:
addHandler in interface EventBus

fireEvent

public <H extends EventHandler> void fireEvent(Event<H> event)
Description copied from interface: EventBus
Fires the event on the bus (synchronously).

Specified by:
fireEvent in interface EventBus


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