org.freecompany.util.multicaster
Class ExceptionHandler

java.lang.Object
  extended by org.freecompany.util.multicaster.ExceptionHandler
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class ExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler

Handles threading exceptions by distributing them to a collection queue for processing by the framework.


Field Summary
protected  Notification listener
           
 
Constructor Summary
ExceptionHandler()
           
ExceptionHandler(Notification listener)
           
 
Method Summary
 void addListener(Notification listener)
           
 void removeListener(Notification listener)
           
 void uncaughtException(java.lang.Thread thread, java.lang.Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected Notification listener
Constructor Detail

ExceptionHandler

public ExceptionHandler()

ExceptionHandler

public ExceptionHandler(Notification listener)
Method Detail

addListener

public void addListener(Notification listener)

removeListener

public void removeListener(Notification listener)

uncaughtException

public void uncaughtException(java.lang.Thread thread,
                              java.lang.Throwable t)
Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler