Package com.tccc.kos.core.service.app
Interface AppListener
public interface AppListener
Listener for Application-related events.
- Since:
- 1.0
- Version:
- 2023-12-21
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonAppLoad(Application<?> app) Called when anApplicationhas been loaded but not yet started.default voidonAppStart(Application<?> app) Called when anApplicationhas been started.default voidonAppStop(Application<?> app) Called when anApplicationis about to be stopped as preparation for unloading.default voidonAppUnload(Application<?> app) Called when anApplicationis unloaded.
-
Method Details
-
onAppLoad
Called when anApplicationhas been loaded but not yet started. All app initialization code has been run and contexts are configured. This is called afterApplication.load()returns. -
onAppStart
Called when anApplicationhas been started. The application is fully loaded and ready for use. This is called afterApplication.started()returns. -
onAppStop
Called when anApplicationis about to be stopped as preparation for unloading. Any shared resources should be released. This is called beforeApplication.stop()is called. -
onAppUnload
Called when anApplicationis unloaded. This is called after theApplication.unload()callback is complete.
-