This is an apparently undocumented class in the API that you can use to get notified about server-level lifecycle events, similar to
ModuleBase.
This is basically an adapter-like implementation of
IServerNotify3 which allows you to override only those lifecycle methods that you actually need,
while the others are implemented without any side effect.
The way to register your server level listener is adding them to
conf/Server.xml under the
ServerListerners tag. The official documentation
of
IServerNotify3 mentions that the order of method calls is:
- constructor
- onServerConfigLoaded
- onServerCreate
- onServerInit
The destroy call order is:
- onServerShutdownStart
- onServerShutdownComplete
- exit