org.sonar.process
Class SystemExit

java.lang.Object
  extended by org.sonar.process.SystemExit

public class SystemExit
extends Object

Calls System.exit(int) except from shutdown hooks, to prevent deadlocks. See http://stackoverflow.com/a/19552359/229031


Constructor Summary
SystemExit()
           
 
Method Summary
 void exit(int code)
           
 boolean isInShutdownHook()
           
 void setInShutdownHook()
          Declarative approach.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemExit

public SystemExit()
Method Detail

exit

public void exit(int code)

isInShutdownHook

public boolean isInShutdownHook()

setInShutdownHook

public void setInShutdownHook()
Declarative approach. I don't know how to get this lifecycle state from Java API.



Copyright © 2009–2015 SonarSource. All rights reserved.