-
public interface ApplicationListener
Application启动和关闭时的监听事件
只能通过application.xml配置详情见: https://redkale.org
- 作者:
- zhangjx
-
-
方法概要
所有方法 实例方法 默认方法 修饰符和类型 方法 说明 default void
init(AnyValue config)
初始化方法default void
onPostCompile(Application application)
Application在运行Compile后调用default void
onPostStart(Application application)
Application在运行start后调用default void
onPreCompile(Application application)
Application在运行Compile前调用default void
onPreShutdown(Application application)
Application在运行shutdown前调用default void
onPreStart(Application application)
Application在运行start前调用default void
onServersPostStop(Application application)
服务全部停掉后被调用default void
onServersPreStop(Application application)
服务全部停掉前被调用
-
-
-
方法详细资料
-
init
default void init(AnyValue config)
初始化方法- 参数:
config
- 配置参数
-
onPreStart
default void onPreStart(Application application)
Application在运行start前调用- 参数:
application
- Application
-
onServersPreStop
default void onServersPreStop(Application application)
服务全部停掉前被调用- 参数:
application
- Application
-
onServersPostStop
default void onServersPostStop(Application application)
服务全部停掉后被调用- 参数:
application
- Application
-
onPostStart
default void onPostStart(Application application)
Application在运行start后调用- 参数:
application
- Application
-
onPreCompile
default void onPreCompile(Application application)
Application在运行Compile前调用- 参数:
application
- Application
-
onPostCompile
default void onPostCompile(Application application)
Application在运行Compile后调用- 参数:
application
- Application
-
onPreShutdown
default void onPreShutdown(Application application)
Application在运行shutdown前调用- 参数:
application
- Application
-
-