jigcell.compare.impl
Class Compare.CompareSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by jigcell.compare.impl.Compare.CompareSecurityManager
Enclosing class:
Compare

protected class Compare.CompareSecurityManager
extends java.lang.SecurityManager

Controls termination of the Comparator to prevent badly behaving tabs from causing problems.


Field Summary
protected  boolean allowShutdown
          Whether a shutdown should be allowed to proceed.
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
protected Compare.CompareSecurityManager()
          Creates a new security manager.
 
Method Summary
 void checkExit(int status)
           
 void checkPermission(java.security.Permission permission)
           
 void checkPermission(java.security.Permission permission, java.lang.Object context)
           
 void terminate(int status)
          Shuts down the virtual machine.
 
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
 

Field Detail

allowShutdown

protected boolean allowShutdown
Whether a shutdown should be allowed to proceed.

Constructor Detail

Compare.CompareSecurityManager

protected Compare.CompareSecurityManager()
Creates a new security manager.

Method Detail

checkExit

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

checkPermission

public void checkPermission(java.security.Permission permission)
Overrides:
checkPermission in class java.lang.SecurityManager

checkPermission

public void checkPermission(java.security.Permission permission,
                            java.lang.Object context)
Overrides:
checkPermission in class java.lang.SecurityManager

terminate

public void terminate(int status)
Shuts down the virtual machine.