|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.config.ConfigurationCacheByPropertiesImpl
public final class ConfigurationCacheByPropertiesImpl
This ConfigurationCache implementation is based on a property file.
| Method Summary | |
|---|---|
void |
addConfigurationListener(ConfigurationListener newListener)
|
static ConfigurationCacheByPropertiesImpl |
current()
Returns a reference to the one and only object instance of this class. |
Set |
getKeys()
Returns an immutable Set containing all keys present in the configuration. |
String |
getString(String key)
Returns the String value that is associated with the given key. |
void |
reloadCache()
Reloads the internal configuration cache from resource bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ConfigurationCacheByPropertiesImpl current()
public String getString(String key)
throws ConfigurationValueNotFoundException
ConfigurationCacheInterface
getString in interface ConfigurationCacheInterfacekey - the key to look up.
ConfigurationValueNotFoundException - if the key is not set or
the resource was not found.Returns the String value set for the given configuration key.public Set getKeys()
ConfigurationKey objects.
In case there are no keys, the Set is empty.
getKeys in interface ConfigurationCacheInterfaceConfigurationKey objects.public void addConfigurationListener(ConfigurationListener newListener)
addConfigurationListener in interface ConfigurationCacheInterfaceConfigurationServiceInterface.addConfigurationListener(ConfigurationListener)public void reloadCache()
reloadCache in interface ConfigurationCacheInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||