|
||||||||||
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.ConfigurationImpl
public final class ConfigurationImpl
Implementation of Configuration
Field Summary | |
---|---|
static String |
SYSPROP_MODULE_LOADING
Property to (des)activate the module loading of the configuration factory. |
Method Summary | |
---|---|
Configuration |
getCurrentConfig()
|
static Configuration |
getInstance()
|
Properties |
getProperties()
Deprecated. |
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()
reloads the instance, and reloads the config modules. |
static void |
reset()
|
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 |
Field Detail |
---|
public static final String SYSPROP_MODULE_LOADING
Default value: true
Method Detail |
---|
public static void reset()
public void reload() throws TechnicalConnectorException
TechnicalConnectorException
public boolean isReloading()
@Deprecated public void setConfigLocation(String location) throws TechnicalConnectorException
Configuration
TechnicalConnectorException
public Configuration getCurrentConfig() throws TechnicalConnectorException
TechnicalConnectorException
public static Configuration getInstance() throws TechnicalConnectorException
TechnicalConnectorException
public void setProperty(String key, String value)
Configuration
setProperty
in interface Configuration
setProperty
in class AbstractConfigurationImpl
key
- the keyvalue
- the valuepublic boolean hasProperty(String key)
Configuration
hasProperty
in interface Configuration
hasProperty
in class AbstractConfigurationImpl
key
- the key
public String getProperty(String key, String defaultValue)
Configuration
getProperty
in interface Configuration
getProperty
in class AbstractConfigurationImpl
key
- the keydefaultValue
- the default value
@Deprecated public Properties getProperties()
public void invalidate()
Configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |