com.tivoli.pd.jutil
Class PDBasicContext

java.lang.Object
  extended by com.tivoli.pd.jutil.PDBasicContext
All Implemented Interfaces:
com.tivoli.pd.jutil.IPDBasicContext, java.io.Serializable
Direct Known Subclasses:
PDContext

public class PDBasicContext
extends java.lang.Object
implements com.tivoli.pd.jutil.IPDBasicContext, java.io.Serializable

This class implements the IPDBasicContext interface. It provides trace and message logging setup for the application runtime.

Modes: Local,Remote

See Also:
Serialized Form

Field Summary
static PDBasicContext defaultCtxt
           
 
Constructor Summary
PDBasicContext()
          Constructs a PDBasicContext with default Locale.
PDBasicContext(java.util.Locale locale)
          Constructs a PDBasicContext.
PDBasicContext(java.util.Properties props)
          Constructs a PDBasicContext.
PDBasicContext(java.util.Properties props, java.util.Locale locale)
          Constructs a PDBasicContext.
PDBasicContext(java.net.URL configURL)
          Constructs a PDBasicContext.
PDBasicContext(java.net.URL configURL, java.util.Locale locale)
          Constructs a PDBasicContext.
 
Method Summary
 void close()
          Closes the trace and message loggers.
 java.util.Locale getLocale()
          Returns the Locale.
 com.tivoli.pd.jras.pdjlog.PDJMessageLogger getMessageLogger()
          Returns the message logger.
 java.util.Properties getProperties()
          Returns the properties.
 com.tivoli.pd.jras.pdjlog.PDJTraceLogger getTraceLogger()
          Returns the trace logger.
 java.lang.String getValue(java.lang.String name)
          Returns the value for a specified property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultCtxt

public static PDBasicContext defaultCtxt
Constructor Detail

PDBasicContext

public PDBasicContext(java.util.Properties props)
               throws PDException
Constructs a PDBasicContext. Uses default Locale.

Parameters:
props - System properties to override for this application runtime.
Throws:
PDException

PDBasicContext

public PDBasicContext(java.util.Properties props,
                      java.util.Locale locale)
               throws PDException
Constructs a PDBasicContext.

Parameters:
props - System properties to override for this application runtime.
locale - Locale for this context. Cannot be null.
Throws:
PDException

PDBasicContext

public PDBasicContext(java.net.URL configURL)
               throws PDException
Constructs a PDBasicContext. Uses default Locale.

Parameters:
configURL - configuration file URL.
Throws:
PDException

PDBasicContext

public PDBasicContext(java.net.URL configURL,
                      java.util.Locale locale)
               throws PDException
Constructs a PDBasicContext.

Parameters:
configURL - configuration file URL.
locale - Locale for this context. Cannot be null.
Throws:
PDException

PDBasicContext

public PDBasicContext()
Constructs a PDBasicContext with default Locale.


PDBasicContext

public PDBasicContext(java.util.Locale locale)
               throws PDException
Constructs a PDBasicContext.

Parameters:
locale - Locale for this context. Cannot be null.
Throws:
PDException
Method Detail

close

public void close()
           throws PDException
Closes the trace and message loggers.

Throws:
PDException

getTraceLogger

public com.tivoli.pd.jras.pdjlog.PDJTraceLogger getTraceLogger()
Returns the trace logger.

Specified by:
getTraceLogger in interface com.tivoli.pd.jutil.IPDBasicContext

getMessageLogger

public com.tivoli.pd.jras.pdjlog.PDJMessageLogger getMessageLogger()
Returns the message logger.

Specified by:
getMessageLogger in interface com.tivoli.pd.jutil.IPDBasicContext

getLocale

public java.util.Locale getLocale()
Returns the Locale.


getProperties

public java.util.Properties getProperties()
Returns the properties.


getValue

public java.lang.String getValue(java.lang.String name)
Returns the value for a specified property.