org.openeai
Class OpenEaiObject

java.lang.Object
  extended by org.openeai.OpenEaiObject
Direct Known Subclasses:
ConsumerCommand, EnterpriseConfigurationObjectImpl, EnterpriseDbConnectionObject, EnterpriseFields, EnterpriseFormatter, EnterpriseLayoutManagerImpl, EnterpriseMapping, EnterpriseObjectBase, EnterpriseScrubberImpl, EnterpriseTranslator, GenericAppRunner, GenericUuid, IgnoreDTDResolver, MessageConsumer, MessageConsumerClient, MessageProducer, OpenEaiTransformer, ParseErrorHandler, PooledTempQueue, ProducerId, ProducerId, ProducerPool, PubSubMessageBalancer, PubSubMessageStore, QueueRequestor, Schedule, ScheduledApp, ScheduledCommandImpl, ScheduleIdStoreImpl, ScheduleRuntime, StoredMessage, TempQueuePool, TimeOfDay, UuidGenClient, XmlDocumentReader, XmlElementLocator, XmlValidator

public class OpenEaiObject
extends java.lang.Object

The parent of all OpenEAI related objects. This class makes several components that are part of OpenEAI frameworks available to descendants.

Version:
3.0 - 28 January 2003
Author:
Tod Jackson (tod@openeai.org), Steve Wheat (steve@openeai.org)

Field Summary
static org.apache.log4j.Category logger
           
 
Constructor Summary
OpenEaiObject()
          Constructor
 
Method Summary
 java.lang.String getAppName()
          Returns the app name associated to this object.
 boolean getDebug()
           
 java.lang.String getFromAddr()
          Returns the from email address associated to the mail service in this object.
 java.lang.String getMailHost()
          Returns the mail host associated to the mail service in this object.
 MailService getMailService()
          Returns the MailService to be used within this instance of the class.
 java.util.Properties getProperties()
          Returns the Properties to used within this instance of the class.
 java.lang.String getToAddr()
          Returns the to email address associated to the mail service in this object.
 void initializeLog4j()
          Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties contained in the log4j properties object in this object.
 void initializeLog4j(java.util.Properties props)
          Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties found in the Properties object passed in.
 void initializeLog4j(java.lang.String fileName)
          Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties found in the file name passed in (a properties file).
 void setAppName(java.lang.String in)
          Sets the app name associated to this object.
 void setDebug(boolean in)
          Allows decendants of OpenEaiObject to support default Clone behavior.
 void setFromAddr(java.lang.String in)
          Sets the from email address associated to the mail service in this object.
 void setMailHost(java.lang.String in)
          Sets the mail host associated to the mail service in this object.
 void setMailService(MailService in)
          Sets the MailService to be used within this instance of the class.
 void setProperties(java.util.Properties in)
          Sets the properties to be used within this instance of the class.
 void setToAddr(java.lang.String in)
          Sets the to email address associated to the mail service in this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.apache.log4j.Category logger
Constructor Detail

OpenEaiObject

public OpenEaiObject()
Constructor

Method Detail

initializeLog4j

public void initializeLog4j()
Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties contained in the log4j properties object in this object. Properties are added to the log4j properties object via the addLog4jProperty method.


initializeLog4j

public void initializeLog4j(java.lang.String fileName)
Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties found in the file name passed in (a properties file).

Parameters:
fileName - String name of properties file.

initializeLog4j

public void initializeLog4j(java.util.Properties props)
Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties found in the Properties object passed in.

Parameters:
props - Properties pre-configured properties object containing Log4J properties.

setDebug

public void setDebug(boolean in)
Allows decendants of OpenEaiObject to support default Clone behavior. Note, this may not work for all objects.


getDebug

public boolean getDebug()

setMailHost

public void setMailHost(java.lang.String in)
Sets the mail host associated to the mail service in this object.

Parameters:
in - String name of the mail host.

getMailHost

public java.lang.String getMailHost()
Returns the mail host associated to the mail service in this object.

Returns:
String name of the mail host.

setFromAddr

public void setFromAddr(java.lang.String in)
Sets the from email address associated to the mail service in this object.

Parameters:
in - String from address (from whom the email messages are being sent).

getFromAddr

public java.lang.String getFromAddr()
Returns the from email address associated to the mail service in this object.

Returns:
String from address (from whom the email messages are being sent).

setToAddr

public void setToAddr(java.lang.String in)
Sets the to email address associated to the mail service in this object. This is the email address that the email will be sent to.

Parameters:
in - String to address (who the message will be sent to).

getToAddr

public java.lang.String getToAddr()
Returns the to email address associated to the mail service in this object. This is the email address that the email will be sent to.

Returns:
String to address (who the message will be sent to).

setAppName

public void setAppName(java.lang.String in)
Sets the app name associated to this object.

Parameters:
in - String

getAppName

public java.lang.String getAppName()
Returns the app name associated to this object.

Returns:
String

setMailService

public void setMailService(MailService in)
Sets the MailService to be used within this instance of the class. The MailService object is used to send email.

Parameters:
in - MailService the MailService to use within this instance.

getMailService

public MailService getMailService()
Returns the MailService to be used within this instance of the class. The MailService object is used to send email.

Returns:
MailService

setProperties

public void setProperties(java.util.Properties in)
Sets the properties to be used within this instance of the class.

Parameters:
in - Properties the Properties to use within this instance.

getProperties

public java.util.Properties getProperties()
Returns the Properties to used within this instance of the class.

Returns:
Properties


Copyright © 2002,2003 OpenEAI Software Foundation