|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ws.api.util.BundleUtils
public final class BundleUtils
Utility class to get resource bundle and i18n message
Method Summary | |
---|---|
static ResourceBundle |
getBundle(Class<?> cls)
Get resource bundle with a class |
static String |
getMessage(ResourceBundle bundle,
String key,
Object... params)
Get the i18n string message with an associated resource bundle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ResourceBundle getBundle(Class<?> cls)
cls
- the class to find the resource bundle
public static String getMessage(ResourceBundle bundle, String key, Object... params)
bundle
- resourceBundlekey
- the key for the desired stringparams
- the message substitution parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |