Interface AppListener


public interface AppListener
Listener for Application-related events.
Since:
1.0
Version:
2023-12-21
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when an Application has been loaded but not yet started.
    default void
    Called when an Application has been started.
    default void
    Called when an Application is about to be stopped as preparation for unloading.
    default void
    Called when an Application is unloaded.
  • Method Details

    • onAppLoad

      default void onAppLoad(Application<?> app)
      Called when an Application has been loaded but not yet started. All app initialization code has been run and contexts are configured. This is called after Application.load() returns.
    • onAppStart

      default void onAppStart(Application<?> app)
      Called when an Application has been started. The application is fully loaded and ready for use. This is called after Application.started() returns.
    • onAppStop

      default void onAppStop(Application<?> app)
      Called when an Application is about to be stopped as preparation for unloading. Any shared resources should be released. This is called before Application.stop() is called.
    • onAppUnload

      default void onAppUnload(Application<?> app)
      Called when an Application is unloaded. This is called after the Application.unload() callback is complete.