net.sourceforge.cruisecontrol
Class NoExitSecurityManager

java.lang.Object
  |
  +--java.lang.SecurityManager
        |
        +--net.sourceforge.cruisecontrol.NoExitSecurityManager

public class NoExitSecurityManager
extends java.lang.SecurityManager

This security manager will cause an ExitException to be thrown whenever System.exit is called instead of terminating the VM.

Author:
Matthew Foemmel

Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
NoExitSecurityManager()
           
 
Method Summary
 void checkExit(int status)
          Throws an ExitException instead of terminating the VM.
 void checkPermission(java.security.Permission p)
          Allows anything.
 
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoExitSecurityManager

public NoExitSecurityManager()
Method Detail

checkExit

public void checkExit(int status)
Throws an ExitException instead of terminating the VM.
Overrides:
checkExit in class java.lang.SecurityManager

checkPermission

public void checkPermission(java.security.Permission p)
Allows anything.
Overrides:
checkPermission in class java.lang.SecurityManager