Interface LifecycleBusObserver
- All Superinterfaces:
org.refcodes.component.ext.observer.GenericLifecycleRequestObserver<Enum<?>,
InitializeBusEvent, StartBusEvent, ResumeBusEvent, PauseBusEvent, StopBusEvent, DestroyBusEvent, org.refcodes.mixin.EventMetaData, ApplicationBus>
public interface LifecycleBusObserver
extends org.refcodes.component.ext.observer.GenericLifecycleRequestObserver<Enum<?>,InitializeBusEvent,StartBusEvent,ResumeBusEvent,PauseBusEvent,StopBusEvent,DestroyBusEvent,org.refcodes.mixin.EventMetaData,ApplicationBus>
An observer for listening to
LifecycleBusEvent
instances. The various
lifecycle methods have a default implementation, so just implement those
methods on which's events you are interested.-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 Details
-
onInitialize
- Specified by:
onInitialize
in interfaceorg.refcodes.component.ext.observer.GenericLifecycleRequestObserver<Enum<?>,
InitializeBusEvent, StartBusEvent, ResumeBusEvent, PauseBusEvent, StopBusEvent, DestroyBusEvent, org.refcodes.mixin.EventMetaData, ApplicationBus>
-
onStart
- Specified by:
onStart
in interfaceorg.refcodes.component.ext.observer.GenericLifecycleRequestObserver<Enum<?>,
InitializeBusEvent, StartBusEvent, ResumeBusEvent, PauseBusEvent, StopBusEvent, DestroyBusEvent, org.refcodes.mixin.EventMetaData, ApplicationBus>
-
onResume
- Specified by:
onResume
in interfaceorg.refcodes.component.ext.observer.GenericLifecycleRequestObserver<Enum<?>,
InitializeBusEvent, StartBusEvent, ResumeBusEvent, PauseBusEvent, StopBusEvent, DestroyBusEvent, org.refcodes.mixin.EventMetaData, ApplicationBus>
-
onPause
- Specified by:
onPause
in interfaceorg.refcodes.component.ext.observer.GenericLifecycleRequestObserver<Enum<?>,
InitializeBusEvent, StartBusEvent, ResumeBusEvent, PauseBusEvent, StopBusEvent, DestroyBusEvent, org.refcodes.mixin.EventMetaData, ApplicationBus>
-
onStop
- Specified by:
onStop
in interfaceorg.refcodes.component.ext.observer.GenericLifecycleRequestObserver<Enum<?>,
InitializeBusEvent, StartBusEvent, ResumeBusEvent, PauseBusEvent, StopBusEvent, DestroyBusEvent, org.refcodes.mixin.EventMetaData, ApplicationBus>
-
onDestroy
- Specified by:
onDestroy
in interfaceorg.refcodes.component.ext.observer.GenericLifecycleRequestObserver<Enum<?>,
InitializeBusEvent, StartBusEvent, ResumeBusEvent, PauseBusEvent, StopBusEvent, DestroyBusEvent, org.refcodes.mixin.EventMetaData, ApplicationBus>
-