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 type
STARTED - the generic type
RESUMED - the generic type
PAUSED - the generic type
STOPPED - the generic type
DESTROYED - the generic type
META - the generic type
SRC - 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 Details

    • onInitialized

      void onInitialized(INITED aEvent)
      In case a component is to be initialized, then the InitializedEvent event is fired.
      Parameters:
      aEvent - The according InitializedEvent.
    • onStarted

      void onStarted(STARTED aEvent)
      In case a component is to be initialized, then the StartedEvent event is fired.
      Parameters:
      aEvent - The according StartedEvent.
    • onResumed

      void onResumed(RESUMED aEvent)
      In case a component is to be initialized, then the ResumedEvent event is fired.
      Parameters:
      aEvent - The according ResumedEvent.
    • onPaused

      void onPaused(PAUSED aEvent)
      In case a component is to be initialized, then the StartedEvent event is fired.
      Parameters:
      aEvent - The according StartedEvent.
    • onStopped

      void onStopped(STOPPED aEvent)
      In case a component is to be initialized, then the StoppedEvent event is fired.
      Parameters:
      aEvent - The according StoppedEvent.
    • onDestroyed

      void onDestroyed(DESTROYED aEvent)
      In case a component is to be initialized, then the DestroyedEvent event is fired.
      Parameters:
      aEvent - The according DestroyedEvent.