IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.services
Class Messages

java.lang.Object
  extended bycom.ibm.btt.services.Messages

public class Messages
extends java.lang.Object

Messages is to initial and keep the instance of the resource bundle of the trace message and the exception message


Field Summary
static java.util.ResourceBundle exceptionBundle
          Define exception resource bundle.
static java.util.ResourceBundle traceBundle
          define trace resource bundle.
 
Constructor Summary
Messages(java.lang.String tracePropertyFile, java.lang.String exceptionPropertyFile)
          Constructor of Message, it is to initialize the resource bundle of the trace message and the exception message.
 
Method Summary
static java.lang.String formatMsg(java.lang.String pattern, java.lang.Object[] args)
          Format the message.
static java.util.ResourceBundle getExceptionBundle()
          Returns the exceptionBundle.
static java.util.ResourceBundle getTraceBundle()
          Returns the traceBundle.
static void setExceptionBundle(java.util.ResourceBundle bundle)
          Sets the exceptionBundle.
static void setTraceBundle(java.util.ResourceBundle bundle)
          Sets the traceBundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

traceBundle

public static java.util.ResourceBundle traceBundle
define trace resource bundle.


exceptionBundle

public static java.util.ResourceBundle exceptionBundle
Define exception resource bundle.

Constructor Detail

Messages

public Messages(java.lang.String tracePropertyFile,
                java.lang.String exceptionPropertyFile)
Constructor of Message, it is to initialize the resource bundle of the trace message and the exception message.

Method Detail

getExceptionBundle

public static java.util.ResourceBundle getExceptionBundle()
Returns the exceptionBundle.

Returns:
ResourceBundle

getTraceBundle

public static java.util.ResourceBundle getTraceBundle()
Returns the traceBundle.

Returns:
ResourceBundle

setExceptionBundle

public static void setExceptionBundle(java.util.ResourceBundle bundle)
Sets the exceptionBundle.

Parameters:
bundle - The exceptionBundle to set

setTraceBundle

public static void setTraceBundle(java.util.ResourceBundle bundle)
Sets the traceBundle.

Parameters:
bundle - The traceBundle to set

formatMsg

public static java.lang.String formatMsg(java.lang.String pattern,
                                         java.lang.Object[] args)
Format the message.

Parameters:
pattern - The message pattern
args - Argument of message patter

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005