public class Messages extends Object
| Constructor and Description |
|---|
Messages() |
| Modifier and Type | Method and Description |
|---|---|
String |
get(Key key,
Object... arguments)
Returns a localized value for a given key stored in messages_xx.properties and passing the
given arguments
|
String |
get(String key)
Returns a localized value for a given key stored in messages_xx.properties
|
String |
get(String key,
Object... arguments)
Returns a localized value for a given key stored in messages_xx.properties and passing the
given arguments
|
void |
reload()
Refreshes the resource bundle by reloading the bundle with the default locale
|
public void reload()
public String get(String key)
key - The key to look up the localized valuepublic String get(String key, Object... arguments)
key - The key to look up the localized valuearguments - The arguments to usepublic String get(Key key, Object... arguments)
key - The key enum to lookup up the localized valuearguments - The arguments to useCopyright © 2016. All rights reserved.