All loaded modules' shutdownModule() methods are called, then shutdownServer is called.
After having used a
Server
instance, if you know your program is the only client of the Server
in the VM instance, you should make an explicit call to this method so that you can catch and handle its exceptions properly. If you are usure or know that there may be at least one other client of the Server
in the VM instance, you should call System.runFinalization()
after ensuring you no longer have a reference. In this case, if there is no other reference to the object in the VM, finalization will be called (but you will be unable to catch ShutdownException
variants, if thrown). Right before this is finished, the instance is removed from the server instances map. @throws ServerShutdownException If a severe server shutdown-related error occurred. USER_REPRESENTED = addName(new XacmlName(this, "subjectRepresented")); @throws ModuleShutdownException If a severe module shutdown-related error occurred.
|
|