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
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EboFactory
public EboFactory()
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 usedescription
- 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 loglogLevel
- the log level at which the event information should be
written to the logdescription
- 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