Modifier and Type | Method and Description |
---|---|
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
|
public static ResourceBundle getBundle(Class<?> cls)
cls
- the class to find the resource bundlepublic static String getMessage(ResourceBundle bundle, String key, Object... params)
bundle
- resourceBundlekey
- the key for the desired stringparams
- the message substitution parametersCopyright © 2018 JBoss by Red Hat. All rights reserved.