public class DebuggingResourceBundle extends ResourceBundle
ResourceBundle can dynamically read a properties file for keys. This is reasonable efficient
in that it only re-reads the keys if the file modification date has changed.
This is intended to be used ONLY in development so that changes the language files can be seen without restarting JIRA
ResourceBundle.Control| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log |
parent| Constructor and Description |
|---|
DebuggingResourceBundle(File propertiesFile,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
static DebuggingResourceBundle |
getDebuggingResourceBundle(String baseName,
Locale locale)
See
ResourceBundle.getBundle(String, java.util.Locale) for an example of the semantics |
Enumeration<String> |
getKeys() |
protected Object |
handleGetObject(String key) |
boolean |
isStale() |
String |
toString() |
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParentpublic static DebuggingResourceBundle getDebuggingResourceBundle(String baseName, Locale locale)
ResourceBundle.getBundle(String, java.util.Locale) for an example of the semantics
* This should be re-implemented using Java 1.6 ResourceBundle.Control objects and hence allow the normal ResourceBundle loading mechanism to be used. But we arent on Java 6 yet!
http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.Control.html
baseName - the base name of the reosurcelocale - the locale to use as a lookuppublic boolean isStale()
protected Object handleGetObject(String key)
handleGetObject in class ResourceBundlepublic Enumeration<String> getKeys()
getKeys in class ResourceBundleCopyright © 2002-2019 Atlassian. All Rights Reserved.