public class ReloadablePropertyResourceBundle extends ResourceBundle
ResourceBundle.Control| Modifier and Type | Field and Description |
|---|---|
protected String |
baseName |
protected PropertyResourceBundle |
internalBundle |
protected Properties |
overridingProps |
parent| Constructor and Description |
|---|
ReloadablePropertyResourceBundle(PropertyResourceBundle internalBundle,
String baseName) |
| Modifier and Type | Method and Description |
|---|---|
Enumeration<String> |
getKeys() |
Locale |
getLocale() |
protected Object |
handleGetObject(String key) |
void |
reload(ClassLoader loader)
Reloads resource bundle from the properties file which can be decided by the baseName.
|
void |
reset()
Resets overriding properties.
|
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, handleKeySet, keySet, setParentprotected PropertyResourceBundle internalBundle
protected String baseName
protected Properties overridingProps
public ReloadablePropertyResourceBundle(PropertyResourceBundle internalBundle, String baseName)
public void reload(ClassLoader loader) throws IOException
loader - IOExceptionpublic void reset()
public Locale getLocale()
getLocale in class ResourceBundlepublic Enumeration<String> getKeys()
getKeys in class ResourceBundleprotected Object handleGetObject(String key)
handleGetObject in class ResourceBundleCopyright © 1999–2015 The Apache Software Foundation. All rights reserved.