|
||||||||||
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 Configuration
key
- the keydefaultValue
- the default value
public void setProperty(String key, String value)
Configuration
setProperty
in interface Configuration
key
- the keyvalue
- the valuepublic boolean hasProperty(String key)
Configuration
hasProperty
in interface Configuration
key
- the key
public Configuration getCurrentConfig() throws TechnicalConnectorException
getCurrentConfig
in interface Configuration
TechnicalConnectorException
public void invalidate() throws TechnicalConnectorException
Configuration
invalidate
in interface Configuration
TechnicalConnectorException
public void reload() throws TechnicalConnectorException
Configuration
This method must be called when you change properties at runtime that are used by configuration modules.
reload
in interface Configuration
TechnicalConnectorException
public boolean isReloading()
isReloading
in interface Configuration
public void flushCache()
SessionServiceWithCache
flushCache
in interface SessionServiceWithCache
@Deprecated public void setConfigLocation(String location) throws TechnicalConnectorException
Configuration
setConfigLocation
in interface Configuration
TechnicalConnectorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |