public class AbstractMessages extends Object
| Constructor and Description |
|---|
AbstractMessages(Class<? extends AbstractMessages> c)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
all() |
static void |
clearLocale() |
String |
format(String key,
Object... params)
Look up a message in the i18n resource message bundle by key, then format the
message with the given params and return the result.
|
Locale |
getLocale()
Gets the locale to use when finding a bundle.
|
static void |
setLocale(Locale locale) |
public AbstractMessages(Class<? extends AbstractMessages> c)
c - the classpublic static void setLocale(Locale locale)
public static void clearLocale()
public Locale getLocale()
public String format(String key, Object... params)
key - the keyparams - the parametersCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.