public class VMexitHandler extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | VMexitHandler.ListenerThe interface that listeners to this class must implement | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addListener(VMexitHandler.Listener lis)Register a callback to be notified when someone has called System.exit() | 
| ActionListener | getSysExitHandler()Convenience method to return an ActionListener which does one thing: call sysExit() in the
 prescribed way. | 
| static VMexitHandler | instance() | 
public static VMexitHandler instance()
public void addListener(VMexitHandler.Listener lis)
lis - instance of the static interface defined in this filepublic ActionListener getSysExitHandler()