Interface LifeCycleBusObserver
-
- All Superinterfaces:
org.refcodes.component.ext.observer.GenericLifeCycleRequestObserver<java.lang.Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.observer.EventMetaData,ApplicationBus>
public interface LifeCycleBusObserver extends org.refcodes.component.ext.observer.GenericLifeCycleRequestObserver<java.lang.Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.observer.EventMetaData,ApplicationBus>
An observer for listening toLifeCycleBusEvent
instances. The various lifecycle methods have a default implementation, so just implement those methods on which's events you are interested.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onDestroy(DestroyBusEvent aEvent)
default void
onInitialize(InitializeBusEvent aEvent)
default void
onPause(PauseBusEvent aEvent)
default void
onResume(ResumeBusEvent aEvent)
default void
onStart(StartBusEvent aEvent)
default void
onStop(StopBusEvent aEvent)
-
-
-
Method Detail
-
onInitialize
default void onInitialize(InitializeBusEvent aEvent)
- Specified by:
onInitialize
in interfaceorg.refcodes.component.ext.observer.GenericLifeCycleRequestObserver<java.lang.Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.observer.EventMetaData,ApplicationBus>
-
onStart
default void onStart(StartBusEvent aEvent)
- Specified by:
onStart
in interfaceorg.refcodes.component.ext.observer.GenericLifeCycleRequestObserver<java.lang.Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.observer.EventMetaData,ApplicationBus>
-
onResume
default void onResume(ResumeBusEvent aEvent)
- Specified by:
onResume
in interfaceorg.refcodes.component.ext.observer.GenericLifeCycleRequestObserver<java.lang.Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.observer.EventMetaData,ApplicationBus>
-
onPause
default void onPause(PauseBusEvent aEvent)
- Specified by:
onPause
in interfaceorg.refcodes.component.ext.observer.GenericLifeCycleRequestObserver<java.lang.Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.observer.EventMetaData,ApplicationBus>
-
onStop
default void onStop(StopBusEvent aEvent)
- Specified by:
onStop
in interfaceorg.refcodes.component.ext.observer.GenericLifeCycleRequestObserver<java.lang.Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.observer.EventMetaData,ApplicationBus>
-
onDestroy
default void onDestroy(DestroyBusEvent aEvent)
- Specified by:
onDestroy
in interfaceorg.refcodes.component.ext.observer.GenericLifeCycleRequestObserver<java.lang.Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.observer.EventMetaData,ApplicationBus>
-
-