java.lang.Object | +--com.ibm.commerce.messaging.adapters.jcautil.JCATraceHelper
This class implements the JCATracing interface. This utility class is used to provide tracing service to the J2EE JCA compliant outbound connectors.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
Constructor Summary | |
---|---|
JCATraceHelper() |
Method Summary | |
---|---|
static java.lang.String |
doubleTheApostrophy(java.lang.String theString) Insert an addition apostrophy if the message text contains a apostrophy. |
static java.lang.Object[] |
generateMsgParms(java.lang.Object parm1) Create an object array to be used as parameters to be passed to a message |
static java.lang.Object[] |
generateMsgParms(java.lang.Object parm1,
java.lang.Object parm2) Create an object array to be used as parameters to be passed to a message. |
static java.lang.Object[] |
generateMsgParms(java.lang.Object parm1, java.lang.Object parm2,
java.lang.Object parm3) Create an object array to be used as parameters to be passed to a message. |
static java.lang.Object[] |
generateMsgParms(java.lang.Object parm1, java.lang.Object parm2,
java.lang.Object parm3, java.lang.Object parm4) Create an object array to be used as parameters to be passed to a message. |
static java.lang.String |
getSystemMessage(java.lang.String loggerName, java.lang.String msgKey,
java.lang.Object[] parms) Return the textual description of the system message passed as argument. |
static java.lang.String |
getSystemMessage(java.lang.String loggerName, java.lang.String msgKey,
java.lang.Object[] parms, java.util.Locale locale) Return the textual description of the system message passed as argument. |
static java.lang.String |
getSystemResourceBundleName(java.lang.String loggerName) Retrieve the resource bundle associated with a system message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public JCATraceHelper()
Method Detail |
---|
public static java.lang.Object[] generateMsgParms(java.lang.Object parm1)
parm1
- Value of the first parameter to be substituted into
the message text.public static java.lang.Object[] generateMsgParms(java.lang.Object parm1, java.lang.Object parm2)
parm1
- Value of the first parameter to be substituted into
the message text.parm2
- Value of the first parameter to be substituted into
the message text.public static java.lang.Object[] generateMsgParms(java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3)
parm1
- Value of the first parameter to be substituted into
the message text.parm2
- Value of the second parameter to be substituted into
the message text.parm3
- Value of the third parameter to be substituted into
the message text.public static java.lang.Object[] generateMsgParms(java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3, java.lang.Object parm4)
parm1
- Value of the first parameter to be substituted into
the message text.parm2
- Value of the second parameter to be substituted into
the message text.parm3
- Value of the third parameter to be substituted into
the message text.parm4
- Value of the fourth parameter to be substituted into
the message text.public static java.lang.String getSystemMessage(java.lang.String loggerName, java.lang.String msgKey, java.lang.Object[] parms)
loggerName
- String The name of logger.msgKey
- String The message key.parms
- Object [] Array of objects used for placeholders
replacement in the message text.public static java.lang.String getSystemMessage(java.lang.String loggerName, java.lang.String msgKey, java.lang.Object[] parms, java.util.Locale locale)
loggerName
- The logger name.msgKey
- String The message key.parms
- Object [] Array of objects used for placeholders
replacement in the message text.locale
- Locale Used to identify the resource bundle
containing the translated message. If null, default locale is used.public static java.lang.String getSystemResourceBundleName(java.lang.String loggerName)
public static java.lang.String doubleTheApostrophy(java.lang.String theString)