Novell exteNd
Director 5.2 API

com.sssw.fw.event.api
Interface EbiPrintStateChangeListener

All Superinterfaces:
EbiEventListener, EbiStateChangeListener, EventListener

public interface EbiPrintStateChangeListener
extends EbiStateChangeListener

Listens on state change events and notifies interested parties of events by printing event information into the specified print stream. For example:

 EbiPrintStateChangeListener listener = com.sssw.fw.event.factory.EboFactory.getPrintStateChangeListener();
 PrintStream ps = new PrintStream(mybuffer);
 listener.setPrintStream(ps);
 listener.setPreamble("The following event has occurred:");
 EbiStateChangeProducer producer = com.sssw.fw.event.factory.getStateChangeProducer();
 producer.addStateChangeListener(listener);
 


Method Summary
 String getPreamble()
          Gets any preamble message to print before the verbose description of the event.
 PrintStream getPrintStream()
          Gets the print stream to print event notifications to.
 void setPreamble(String preamble)
          Sets any preamble message to print before the verbose description of the event.
 void setPrintStream(PrintStream ps)
          Sets the print stream to print event notifications to.
 
Methods implemented from interface com.sssw.fw.event.api.EbiStateChangeListener
stateChanged
 
Methods implemented from interface com.sssw.fw.event.api.EbiEventListener
getListenerDescription, getLog, setListenerDescription, setLog
 

Method Detail

setPrintStream

public void setPrintStream(PrintStream ps)
Sets the print stream to print event notifications to.
Parameters:
ps - the print stream to print event notifications to

getPrintStream

public PrintStream getPrintStream()
Gets the print stream to print event notifications to.
Returns:
the print stream to print event notifications to

setPreamble

public void setPreamble(String preamble)
Sets any preamble message to print before the verbose description of the event.
Parameters:
preamble - any preamble message

getPreamble

public String getPreamble()
Gets any preamble message to print before the verbose description of the event.
Returns:
preamble any preamble message

Novell exteNd
Director 5.2 API