|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.yawlfoundation.yawl.scheduling.ConfigManager
public class ConfigManager
Manages the loading of resource bundles and other properties. Each instance for a specific locale is cached and reused
| Field Summary |
|---|
| Method Summary | |
|---|---|
static ConfigManager |
getFromRequest(javax.servlet.http.HttpServletRequest request)
Gets the appropriate ConfigManager, based on a servlet request. |
static ConfigManager |
getInstance()
Gets a ConfigManager instance using the default language (set in Constants) |
static ConfigManager |
getInstance(String language)
Gets a ConfigManager instance using the specified language |
String |
getLanguage()
Gets the language of the locale of the currently loaded ResourceBundle |
Locale |
getLocale()
Gets the locale of the currently loaded ResourceBundle |
String |
getLocalizedJSONString(String valueAndArgsAsJSON)
Gets the localised value (a string message in the current language) for a key. |
String |
getLocalizedString(String key)
Gets the localised value (a string message in the current language) for a key |
String |
getLocalizedString(String key,
String... subKeys)
Gets the localised value (a string message in the current language) for a key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ConfigManager getInstance()
public static ConfigManager getInstance(String language)
language - the language to get a ConfigManager instance for
public static ConfigManager getFromRequest(javax.servlet.http.HttpServletRequest request)
request - the request to use to select the appropriate ConfigManager instance
public Locale getLocale()
public String getLanguage()
public String getLocalizedString(String key,
String... subKeys)
key - the key to get the value forsubKeys - the set of keys to use as values for corresponding placeholders
in the original value
public String getLocalizedJSONString(String valueAndArgsAsJSON)
valueAndArgsAsJSON - a JSON string containing the key to get the value for
and the set of keys to use as values for corresponding placeholders in the
original value (as an array)
public String getLocalizedString(String key)
key - the key to get the value for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||