Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Adds the specified ShutdownListener object that is to receive notification before the server context is destroyed.
void ServerContext.addShutdownListener(ShutdownListener sl)
The ShutdownListener object to be notified on shutdown.
On shutdown, the ShutdownListener.shutdownPerformed(ServerContext) method is called.