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