Novell exteNd
Director 5.2 API

com.sssw.fw.event.factory
Class EboFactory

java.lang.Object
 |
 +--com.sssw.fw.event.factory.EboFactory
All Implemented Interfaces:
Serializable

public class EboFactory
extends Object
implements Serializable

Provides factory methods for instantiating event-related objects.

See Also:
Serialized Form

Constructor Summary
EboFactory()
           
 
Method Summary
static EbiLogStateChangeListener getLogStateChangeListener(EbiLog log, int logLevel, String description)
          Gets a generic state change listener that notifies of the events it catches by writing to a specific log.
static EbiMailStateChangeListener getMailStateChangeListener()
          Gets a generic state change listener that notifies interested parties of the events it catches by sending email.
static EbiPrintStateChangeListener getPrintStateChangeListener(PrintStream ps, String description)
          Gets a generic state change listener that notifies of the events it catches by printing into a specific print stream.
static EbiStateChangeProducer getStateChangeProducer()
          Gets a generic state change producer object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EboFactory

public EboFactory()
Method Detail

getMailStateChangeListener

public static EbiMailStateChangeListener getMailStateChangeListener()
                                                             throws EboFactoryException
Gets a generic state change listener that notifies interested parties of the events it catches by sending email.
Returns:
a mail state change listener

getPrintStateChangeListener

public static EbiPrintStateChangeListener getPrintStateChangeListener(PrintStream ps,
                                                                      String description)
                                                               throws EboFactoryException
Gets a generic state change listener that notifies of the events it catches by printing into a specific print stream. Note: if the print stream is not passed in, the method will default it to a print stream that is based on System.out.
Parameters:
ps - the print stream for the listener to use
description - an optional description for the listener
Returns:
a print state change listener

getLogStateChangeListener

public static EbiLogStateChangeListener getLogStateChangeListener(EbiLog log,
                                                                  int logLevel,
                                                                  String description)
                                                           throws EboFactoryException
Gets a generic state change listener that notifies of the events it catches by writing to a specific log.
Parameters:
log - the log for the listener to use; if the log is not specified, the method will default to using the Framework log
logLevel - the log level at which the event information should be written to the log
description - an optional description for the listener
Returns:
a print state change listener

getStateChangeProducer

public static EbiStateChangeProducer getStateChangeProducer()
                                                     throws EboFactoryException
Gets a generic state change producer object.
Returns:
a state change producer object

Novell exteNd
Director 5.2 API