|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.util.i18n.Translate
Class to translate the different messages of cjdbc.
Field Summary | |
static java.lang.String |
file
The base path to get translated sentence from. |
static java.lang.String |
jmx
Jmx description is stored in a different file |
(package private) static Trace |
logger
Logger instance. |
static java.util.ResourceBundle |
mbeans
Description for mbeans |
static java.util.ResourceBundle |
phrase
Prevents failure if resource is not found. |
Constructor Summary | |
Translate()
|
Method Summary | |
static java.lang.String |
get(java.lang.String key)
Returns associated sentence to that key |
static java.lang.String |
get(java.lang.String key,
boolean parameter)
|
static java.lang.String |
get(java.lang.String key,
java.lang.Exception ne)
Returns constant formatting for reporting of exceptions |
static java.lang.String |
get(java.lang.String key,
java.lang.String parameter)
Returns constant formatting for passing parameter for logger. |
static java.lang.String |
get(java.lang.String key,
java.lang.String[] parameters)
Returns constant formatting for passing parameters for logger. |
static java.lang.String |
getJmxDescription(java.lang.String key)
Returns description for jmx |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static Trace logger
public static java.lang.String file
ResourceBundle
public static java.lang.String jmx
public static java.util.ResourceBundle phrase
public static java.util.ResourceBundle mbeans
Constructor Detail |
public Translate()
Method Detail |
public static final java.lang.String getJmxDescription(java.lang.String key)
key
- the key to find in the mbeans description file
public static final java.lang.String get(java.lang.String key)
key
- the key to find in the translation file
public static final java.lang.String get(java.lang.String key, java.lang.Exception ne)
key
- the key to find in translation file.ne
- the exception to report.
public static final java.lang.String get(java.lang.String key, java.lang.String parameter)
key
- the key to find in the translation fileparameter
- to put inside square braquets
public static final java.lang.String get(java.lang.String key, boolean parameter)
get(String,String)
public static final java.lang.String get(java.lang.String key, java.lang.String[] parameters)
key
- the key to find in the translation fileparameters
- to put inside square braquets
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |