Overview | Package | Class | Deprecated | Index | Help
| Groovy 1.7.0
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.tools.shell.util
Class NoExitSecurityManager

    java.lang.Object
      java.lang.SecurityManager
          org.codehaus.groovy.tools.shell.util.NoExitSecurityManager

    class NoExitSecurityManager
    extends SecurityManager

Custom security manager to System#exit (and related) from being used.

version:
  $Rev: 13768 $ $Date: 2008-10-17 14:41:08 +0200 (Fr, 17. Okt 2008) $

Constructor Summary
`NoExitSecurityManager(SecurityManager parent)`
`NoExitSecurityManager()`

Method Summary
`void` | `checkExit(int code)` Always throws {
`void` | `checkPermission(Permission perm)`

Methods inherited from class SecurityManager
checkPackageAccess, checkMemberAccess, checkPermission, checkPermission, checkCreateClassLoader, checkPropertiesAccess, checkPropertyAccess, getThreadGroup, checkAccess, checkAccess, checkRead, checkRead, checkRead, checkWrite, checkWrite, checkExit, checkLink, checkDelete, checkExec, checkConnect, checkConnect, checkSetFactory, checkSecurityAccess, checkAccept, checkAwtEventQueueAccess, checkListen, checkMulticast, checkMulticast, checkPackageDefinition, checkPrintJobAccess, checkSystemClipboardAccess, checkTopLevelWindow, getInCheck, getSecurityContext, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Constructor Detail

### NoExitSecurityManager

    public NoExitSecurityManager(SecurityManager parent)

### NoExitSecurityManager

    public NoExitSecurityManager()

Method Detail

### checkExit

    public void checkExit(int code)

  Always throws SecurityException.

### checkPermission

    public void checkPermission(Permission perm)

Copyright © 2003-2009 The Codehaus. All rights reserved.