Interface LifecycleListener


  • public interface LifecycleListener
    Any class implementing this interface will be registered as an application lifecycle listener. As the application starts and stops, these callbacks will be invoked to allow for executing startup and/or shutdown code.

    LifecycleListeners are singletons, meaning that the same instance will be used for all method invocations. You can use injection and interception at all phases.

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void started()
      This method is called by SeedStack just after the application has started up.
      default void starting()
      This method is called by SeedStack just before the application is starting.
      default void stopped()
      This method is called by SeedStack just after the application has been shut down.
      default void stopping()
      This method is called by SeedStack just before the application is shutting down.
    • Method Detail

      • starting

        default void starting()
        This method is called by SeedStack just before the application is starting.
      • started

        default void started()
        This method is called by SeedStack just after the application has started up.
      • stopping

        default void stopping()
        This method is called by SeedStack just before the application is shutting down.
      • stopped

        default void stopped()
        This method is called by SeedStack just after the application has been shut down.