|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ehealth.technicalconnector.config.impl.AbstractConfigurationImpl
be.ehealth.technicalconnector.config.impl.ConfigurationWithSessionCache
public class ConfigurationWithSessionCache
| Constructor Summary | |
|---|---|
ConfigurationWithSessionCache(Configuration configuration)
|
|
| Method Summary | |
|---|---|
void |
flushCache()
Method to flush the cache after invoking this method. |
Configuration |
getCurrentConfig()
|
String |
getProperty(String key,
String defaultValue)
Gets the property by Key. |
boolean |
hasProperty(String key)
Checks for property. |
void |
invalidate()
Method to invalidate all the cached configuration. |
boolean |
isReloading()
|
void |
reload()
Method to reload the configuration modules. |
void |
setConfigLocation(String location)
Deprecated. |
void |
setProperty(String key,
String value)
Method to override a property at runtime. |
| Methods inherited from class be.ehealth.technicalconnector.config.impl.AbstractConfigurationImpl |
|---|
containsKey, getBooleanProperty, getDurationProperty, getIntegerProperty, getLongProperty, getMatchingProperties, getProperty, getURLProperty, hasDurationProperty, hasMatchingProperty, hasMatchingProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationWithSessionCache(Configuration configuration)
| Method Detail |
|---|
public String getProperty(String key,
String defaultValue)
Configuration
getProperty in interface Configurationkey - the keydefaultValue - the default value
public void setProperty(String key,
String value)
Configuration
setProperty in interface Configurationkey - the keyvalue - the valuepublic boolean hasProperty(String key)
Configuration
hasProperty in interface Configurationkey - the key
public Configuration getCurrentConfig()
throws TechnicalConnectorException
getCurrentConfig in interface ConfigurationTechnicalConnectorException
public void invalidate()
throws TechnicalConnectorException
Configuration
invalidate in interface ConfigurationTechnicalConnectorException
public void reload()
throws TechnicalConnectorException
ConfigurationThis method must be called when you change properties at runtime that are used by configuration modules.
reload in interface ConfigurationTechnicalConnectorExceptionpublic boolean isReloading()
isReloading in interface Configurationpublic void flushCache()
SessionServiceWithCache
flushCache in interface SessionServiceWithCache
@Deprecated
public void setConfigLocation(String location)
throws TechnicalConnectorException
Configuration
setConfigLocation in interface ConfigurationTechnicalConnectorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||