Interface LifecycleStatusObserver<INITED extends InitializeAccomplishedEvent<SRC>,STARTED extends StartAccomplishedEvent<SRC>,RESUMED extends ResumeAccomplishedEvent<SRC>,PAUSED extends PauseAccomplishedEvent<SRC>,STOPPED extends StopAccomplishedEvent<SRC>,DESTROYED extends DestroyAccomplishedEvent<SRC>,META extends org.refcodes.observer.EventMetaData,SRC>
- Type Parameters:
INITED
- the generic typeSTARTED
- the generic typeRESUMED
- the generic typePAUSED
- the generic typeSTOPPED
- the generic typeDESTROYED
- the generic typeMETA
- the generic typeSRC
- the generic type
public interface LifecycleStatusObserver<INITED extends InitializeAccomplishedEvent<SRC>,STARTED extends StartAccomplishedEvent<SRC>,RESUMED extends ResumeAccomplishedEvent<SRC>,PAUSED extends PauseAccomplishedEvent<SRC>,STOPPED extends StopAccomplishedEvent<SRC>,DESTROYED extends DestroyAccomplishedEvent<SRC>,META extends org.refcodes.observer.EventMetaData,SRC>
The
LifecycleStatusObserver
is signaled upon
LifecycleStatusEvent
events.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDestroyed
(DESTROYED aEvent) In case a component is to be initialized, then theDestroyedEvent
event is fired.void
onInitialized
(INITED aEvent) In case a component is to be initialized, then theInitializedEvent
event is fired.void
In case a component is to be initialized, then theStartedEvent
event is fired.void
In case a component is to be initialized, then theResumedEvent
event is fired.void
In case a component is to be initialized, then theStartedEvent
event is fired.void
In case a component is to be initialized, then theStoppedEvent
event is fired.
-
Method Details
-
onInitialized
In case a component is to be initialized, then theInitializedEvent
event is fired.- Parameters:
aEvent
- The accordingInitializedEvent
.
-
onStarted
In case a component is to be initialized, then theStartedEvent
event is fired.- Parameters:
aEvent
- The accordingStartedEvent
.
-
onResumed
In case a component is to be initialized, then theResumedEvent
event is fired.- Parameters:
aEvent
- The accordingResumedEvent
.
-
onPaused
In case a component is to be initialized, then theStartedEvent
event is fired.- Parameters:
aEvent
- The accordingStartedEvent
.
-
onStopped
In case a component is to be initialized, then theStoppedEvent
event is fired.- Parameters:
aEvent
- The accordingStoppedEvent
.
-
onDestroyed
In case a component is to be initialized, then theDestroyedEvent
event is fired.- Parameters:
aEvent
- The accordingDestroyedEvent
.
-