public abstract class ThreadTerminatingSecurityManager extends NoExitSecurityManager
NOTE: Still needs some work; if main script editor exits from the event dispatch thread, an exception is thrown and the exit aborted. Perhaps ignore event dispatch threads?
Modifier and Type | Class and Description |
---|---|
class |
ThreadTerminatingSecurityManager.ThreadTerminatedException |
inCheck
Constructor and Description |
---|
ThreadTerminatingSecurityManager() |
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(Permission perm)
Throw ThreadTerminated for any thread marked for termination.
|
void |
checkPermission(Permission perm,
Object context)
Throw ThreadTerminated for any thread marked for termination.
|
void |
terminateThreads(ThreadGroup group)
Ensure ThreadTermination exceptions are thrown for any thread in the
given group when any such thread causes the security manager to be
invoked.
|
checkExit, exitCalled, exitInvoked
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
public void terminateThreads(ThreadGroup group)
public void checkPermission(Permission perm, Object context)
checkPermission
in class NoExitSecurityManager
public void checkPermission(Permission perm)
checkPermission
in class NoExitSecurityManager
Abbot is hosted on