|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.config.ConfigurationCacheByDbReadOnlyImpl
public final class ConfigurationCacheByDbReadOnlyImpl
This ConfigurationCache implementation is based on a ReadOnly EntityBean that stores its data within a database table.
| Method Summary | |
|---|---|
void |
addConfigurationListener(ConfigurationListener newListener)
|
static ConfigurationCacheByDbReadOnlyImpl |
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 ConfigurationCacheByDbReadOnlyImpl current()
public String getString(String key)
throws ConfigurationValueNotFoundException
getString in interface ConfigurationCacheInterfacekey - the key to look up.
ConfigurationValueNotFoundException - if the key is not set or
the resource was not found.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 | |||||||||