com.deltax.util.listener
Class BridgeListener

java.lang.Object
  extended bycom.deltax.util.listener.SimpleListener
      extended bycom.deltax.util.listener.BridgeListener
All Implemented Interfaces:
Listener
Direct Known Subclasses:
HistoryListener

public class BridgeListener
extends SimpleListener

A listener which distributes signals to a writer and to another listener

Version:
1.0
Author:
Cristiano Sadun

Constructor Summary
BridgeListener(java.io.Writer writer, Listener listener)
           
 
Method Summary
 void receive(Signal signal)
          This implementation discriminates among NamedSignals, MsgSignals and ExceptionSignals.
 
Methods inherited from class com.deltax.util.listener.SimpleListener
close, flush, isAutoFlushing, setAutoFlushing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeListener

public BridgeListener(java.io.Writer writer,
                      Listener listener)
               throws java.io.IOException
Method Detail

receive

public void receive(Signal signal)
Description copied from class: SimpleListener
This implementation discriminates among NamedSignals, MsgSignals and ExceptionSignals.

Specified by:
receive in interface Listener
Overrides:
receive in class SimpleListener
Parameters:
signal - the received signal