abbot
Class NoExitSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by abbot.NoExitSecurityManager
Direct Known Subclasses:
StepRunner.ExitHandler, ThreadTerminatingSecurityManager

public abstract class NoExitSecurityManager
extends SecurityManager


Field Summary
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
NoExitSecurityManager()
           
 
Method Summary
 void checkExit(int status)
           
 void checkPermission(Permission perm)
           
 void checkPermission(Permission perm, Object context)
           
protected abstract  void exitCalled(int status)
          Implement this method to do any context-specific cleanup.
 boolean exitInvoked()
          Returns true if the exit has been invoked through a call of Runtime.exit or Runtime.halt .
 
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
 

Constructor Detail

NoExitSecurityManager

public NoExitSecurityManager()
Method Detail

checkPermission

public void checkPermission(Permission perm,
                            Object context)
Overrides:
checkPermission in class SecurityManager

checkPermission

public void checkPermission(Permission perm)
Overrides:
checkPermission in class SecurityManager

exitInvoked

public boolean exitInvoked()
Returns true if the exit has been invoked through a call of Runtime.exit or Runtime.halt .

Returns:
true <=> An exit has been invoked through a call of Runtime.exit / Runtime.halt .

checkExit

public void checkExit(int status)
Overrides:
checkExit in class SecurityManager

exitCalled

protected abstract void exitCalled(int status)
Implement 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, or thrown from the event dispatch thread).



Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge