Server handlers are useful extension points when users need custom code to be executed during different states of the server’s lifecycle. Several interfaces have been provided by WSO2 Carbon for this purpose. Following are the available server handlers in WSO2 Carbon.
This interface contains methods that get invoked at server startup.
This method is invoked just before starting the transports.
This method is invoked just after starting all the transports.
This interface can be implemented to perform any execution that needs to happen before server shutdown.
This method is invoked before server shutdown begins.
This interface can be implemented to perform any execution that needs to happen before server restart.
This method is invoked before server restart begins.