sisc.util
Class SignalHook

java.lang.Object
  extended by 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.


Nested Class Summary
static class SignalHook.SignalHandler
           
 
Constructor Summary
SignalHook()
           
 
Method Summary
static void addHandler(java.lang.String signame, Procedure proc, DynamicEnvironment env)
           
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method m, java.lang.Object[] a)
           
static void removeHandler(java.lang.String signame, Procedure proc, DynamicEnvironment env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignalHook

public SignalHook()
Method Detail

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