sisc.util
Class SignalHook
java.lang.Object
sisc.util.SignalHook
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class SignalHook
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
Traps signals using the unsupported Sun classes for
signal handling, to provide Scheme callbacks on those signals.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignalHook
public SignalHook()
addHandler
public static void addHandler(java.lang.String signame,
Procedure proc,
DynamicEnvironment env)
removeHandler
public static void removeHandler(java.lang.String signame,
Procedure proc,
DynamicEnvironment env)
invoke
public java.lang.Object invoke(java.lang.Object o,
java.lang.reflect.Method m,
java.lang.Object[] a)
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler