Package org.somda.sdc.common.event
Class EventBusImpl
- java.lang.Object
-
- org.somda.sdc.common.event.EventBusImpl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringidentifier()Returns the name this event bus is identified by.voidpost(Object event)Distributes an event to all registered observers.voidregister(Object object)Registers an object to the event bus.voidunregister(Object object)Unregisters an object from the event bus.voidunregisterAll()Unregisters all observers currently registered at the event bus.
-
-
-
Method Detail
-
identifier
public String identifier()
Description copied from interface:EventBusReturns the name this event bus is identified by.- Specified by:
identifierin interfaceEventBus- Returns:
- the identifier of this event bus.
- See Also:
EventBus.identifier()
-
register
public void register(Object object)
Description copied from interface:EventBusRegisters an object to the event bus.
-
unregister
public void unregister(Object object)
Description copied from interface:EventBusUnregisters an object from the event bus.- Specified by:
unregisterin interfaceEventBus- Parameters:
object- the object to unregister.- See Also:
EventBus.unregister(Object)
-
unregisterAll
public void unregisterAll()
Description copied from interface:EventBusUnregisters all observers currently registered at the event bus.- Specified by:
unregisterAllin interfaceEventBus
-
-