Package org.somda.sdc.common.event
Class EventBusImpl
java.lang.Object
org.somda.sdc.common.event.EventBusImpl
- All Implemented Interfaces:
EventBus
Default implementation of EventBus.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name this event bus is identified by.voidDistributes an event to all registered observers.voidRegisters an object to the event bus.voidunregister(Object object) Unregisters an object from the event bus.voidUnregisters all observers currently registered at the event bus.
-
Method Details
-
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
Description copied from interface:EventBusRegisters an object to the event bus. -
unregister
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
-
post
Description copied from interface:EventBusDistributes an event to all registered observers.
-