java.lang.SecurityManager.checkExit()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(174)

本文整理了Java中java.lang.SecurityManager.checkExit()方法的一些代码示例,展示了SecurityManager.checkExit()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SecurityManager.checkExit()方法的具体详情如下:
包路径:java.lang.SecurityManager
类名称:SecurityManager
方法名:checkExit

SecurityManager.checkExit介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

public void checkExit(final int status) {
  if (doCheck()) {
    super.checkExit(status);
  }
}

代码示例来源:origin: frohoff/ysoserial

@Override
public void checkExit(int status) {
  getSecurityManager().checkExit(status);
}

代码示例来源:origin: apache/hbase

@Override
 public void checkExit(int status) {
  super.checkExit(status);
  throw new ExitException(status);
 }
}

代码示例来源:origin: apache/hive

@Override
 public void checkExit(int status) {

  super.checkExit(status);
  throw new ExitException(status);
 }
}

代码示例来源:origin: kiegroup/jbpm

@Override
  public void checkExit(int status) {
    super.checkExit(status);
    throw new ShouldHavePrevented("The security policy should have prevented the call to System.exit()");
  }
}

代码示例来源:origin: stackoverflow.com

public void exit(int status) {
SecurityManager security = System.getSecurityManager();
if (security != null) {
  security.checkExit(status);
}
Shutdown.exit(status);
}

代码示例来源:origin: apache/tika

@Override
public void checkExit(int status) {
  super.checkExit(status);
  throw new MyExitException(status);
}
@Override

代码示例来源:origin: apache/opennlp

@Override
 public void checkExit(int status) {
  super.checkExit(status);
  throw new ExitException(status);
 }
}

代码示例来源:origin: org.drools/drools-core

@Override
  public void checkExit(int status) {
    super.checkExit(status);
    throw new ShouldHavePrevented("The security policy should have prevented the call to System.exit()");
  }
}

代码示例来源:origin: org.drools/drools-compiler

@Override
  public void checkExit(int status) {
    super.checkExit(status);
    throw new ShouldHavePrevented("The security policy should have prevented the call to System.exit()");
  }
}

代码示例来源:origin: sakserv/hadoop-mini-clusters

@Override
  public void checkExit(int status) {
    super.checkExit(status);
  }
}

代码示例来源:origin: rythmengine/rythmengine

@Override
public void checkExit(int status) {
  checkRythm();
  if (null != osm) osm.checkExit(status);
  if (null != csm) csm.checkExit(status);
}

代码示例来源:origin: facebook/nailgun

public void checkExit(int status) {
 if (base != null) {
  base.checkExit(status);
 }
 throw new NGExitException(status);
}

代码示例来源:origin: com.martiansoftware/nailgun-server

public void checkExit (int status) {
    if (base != null) {
        base.checkExit(status);
    }
    
    final PrintStream exit = (PrintStream)EXIT.get();
    
    if (exit != null) {
        exit.println(status);
    }
    
    throw new NGExitException(status);
}

代码示例来源:origin: name.didier.david/ndd-test4j

/**
   * Throws a <code>NoExitException</code>.
   * 
   * @param status the exit status.
   */
  @Override
  public void checkExit(final int status) {
    super.checkExit(status);
    throw new NoExitException("Intercepted exit with status " + status, status);
  }
}

代码示例来源:origin: cdapio/cdap

@Override
public void checkExit(int status) {
 if (isFromSpark()) {
  throw new SecurityException("Exit not allowed from Spark class: " + Arrays.toString(getClassContext()));
 }
 if (delegate != null) {
  delegate.checkExit(status);
 }
}

代码示例来源:origin: com.aliyun.odps/odps-common-local

@Override
public void checkExit(int status) {
 super.checkExit(status);
 try {
  checkPermission(new RuntimePermission("odpsExitVM"));
 } catch (SecurityException e) {
  throw new SecurityException("ODPS-0730001: " + e.getMessage());
 }
}

代码示例来源:origin: com.aliyun.hbase/alihbase-zookeeper

@Override
 public void checkExit(int status) {
  super.checkExit(status);
  throw new ExitException(status);
 }
}

代码示例来源:origin: openmicroscopy/bioformats

@Override
 public void checkExit(int status) {
  super.checkExit(status);
  throw new ExitException(status);
 }
}

代码示例来源:origin: cinchapi/concourse

@Override
public void checkExit(int status) {
  super.checkExit(status);
  throw new SystemExitInvoked();
}

相关文章