abbot
Class NoExitSecurityManager

java.lang.Object
java.lang.SecurityManager
abbot.NoExitSecurityManager
- public class NoExitSecurityManager
- extends java.lang.SecurityManager
| Methods inherited from class java.lang.SecurityManager |
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, 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 |
NoExitSecurityManager
public NoExitSecurityManager()
checkPermission
public void checkPermission(java.security.Permission perm,
java.lang.Object context)
- Description copied from class:
java.lang.SecurityManager
- Check if the current thread is allowed to perform an operation that
requires the specified
Permission. This is done in a
context previously returned by getSecurityContext(). The
default implementation expects context to be an AccessControlContext,
and it calls AccessControlContext.checkPermission(perm).
checkPermission
public void checkPermission(java.security.Permission perm)
- Description copied from class:
java.lang.SecurityManager
- Check if the current thread is allowed to perform an operation that
requires the specified
Permission. This defaults to
AccessController.checkPermission.
checkExit
public void checkExit(int status)
- Description copied from class:
java.lang.SecurityManager
- Check if the current thread is allowed to exit the JVM with the given
status. This method is called from Runtime.exit() and Runtime.halt().
The default implementation checks
RuntimePermission("exitVM"). If you override this, call
super.checkExit rather than throwing an exception.
terminate
protected void terminate()
- Overload this method to do any context-specific cleanup. This
hook is provided since it may not always be possible to catch the
ExitException explicitly (like when it's caught by someone else).