jline.internal
Class ShutdownHooks

java.lang.Object
  extended by jline.internal.ShutdownHooks

public class ShutdownHooks
extends Object

Manages the JLine shutdown-hook thread and tasks to execute on shutdown.

Since:
2.7
Author:
Jason Dillon

Nested Class Summary
static interface ShutdownHooks.Task
          Essentially a Runnable which allows running to throw an exception.
 
Field Summary
static String JLINE_SHUTDOWNHOOK
           
 
Constructor Summary
ShutdownHooks()
           
 
Method Summary
static
<T extends ShutdownHooks.Task>
T
add(T task)
           
static void remove(ShutdownHooks.Task task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JLINE_SHUTDOWNHOOK

public static final String JLINE_SHUTDOWNHOOK
See Also:
Constant Field Values
Constructor Detail

ShutdownHooks

public ShutdownHooks()
Method Detail

add

public static <T extends ShutdownHooks.Task> T add(T task)

remove

public static void remove(ShutdownHooks.Task task)


Copyright © 2013. All Rights Reserved.