public final class MessagesUtil extends Object
Properties file must:
To acces values, two methods are available : getString(key) and getString(key, parameters...). The key must be "projectname.mykey" and the properties file must contain only "mykey" without the prefix "projectname".
| Modifier and Type | Method and Description |
|---|---|
static String |
getString(String key)
Get message from the key.
|
static String |
getString(String key,
Object... params)
Get message with valued parameters
|
static void |
initializeMessages(List<DajlabControllerExtensionInterface<DajlabModelInterface>> controllers)
Initialize messages from the controllers.
|
public static void initializeMessages(List<DajlabControllerExtensionInterface<DajlabModelInterface>> controllers)
controllers - a list of controllers.public static String getString(String key)
key - a key, formatted like projectname.myrealkeyCopyright © 2018. All rights reserved.