Interface LifecycleRequestObserver<INIT extends InitializeRequestedEvent<SRC>,START extends StartRequestedEvent<SRC>,RESUME extends ResumeRequestedEvent<SRC>,PAUSE extends PauseRequestedEvent<SRC>,STOP extends StopRequestedEvent<SRC>,DESTROY extends DestroyRequestedEvent<SRC>,META extends org.refcodes.observer.EventMetaData,SRC>
- Type Parameters:
INIT
- the generic typeSTART
- the generic typeRESUME
- the generic typePAUSE
- the generic typeSTOP
- the generic typeDESTROY
- the generic typeMETA
- the generic typeSRC
- The source of the events consumed by theLifecycleRequestObserver
.
public interface LifecycleRequestObserver<INIT extends InitializeRequestedEvent<SRC>,START extends StartRequestedEvent<SRC>,RESUME extends ResumeRequestedEvent<SRC>,PAUSE extends PauseRequestedEvent<SRC>,STOP extends StopRequestedEvent<SRC>,DESTROY extends DestroyRequestedEvent<SRC>,META extends org.refcodes.observer.EventMetaData,SRC>
An observer for listening to
LifecycleRequestEvent
instances.-
Method Summary
Modifier and TypeMethodDescriptionvoid
In case a component is to be initialized, then theDestroyEvent
event is fired.void
onInitialize
(INIT aEvent) In case a component is to be initialized, then theInitializeEvent
event is fired.void
In case a component is to be initialized, then thePauseEvent
event is fired.void
In case a component is to be initialized, then theResumeEvent
event is fired.void
In case a component is to be initialized, then theStartEvent
event is fired.void
In case a component is to be initialized, then theStopEvent
event is fired.
-
Method Details
-
onInitialize
In case a component is to be initialized, then theInitializeEvent
event is fired.- Parameters:
aEvent
- The accordingInitializeEvent
.
-
onStart
In case a component is to be initialized, then theStartEvent
event is fired.- Parameters:
aEvent
- The accordingStartEvent
.
-
onResume
In case a component is to be initialized, then theResumeEvent
event is fired.- Parameters:
aEvent
- The accordingResumeEvent
.
-
onPause
In case a component is to be initialized, then thePauseEvent
event is fired.- Parameters:
aEvent
- The accordingPauseEvent
.
-
onStop
In case a component is to be initialized, then theStopEvent
event is fired.- Parameters:
aEvent
- The accordingStopEvent
.
-
onDestroy
In case a component is to be initialized, then theDestroyEvent
event is fired.- Parameters:
aEvent
- The accordingDestroyEvent
.
-