|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.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 | |
|---|---|
boolean |
containsKey(String key)
Property contains key. |
Boolean |
getBooleanProperty(String key,
Boolean defaultValue)
Gets the boolean property. |
Configuration |
getCurrentConfig()
|
Duration |
getDurationProperty(String key,
Long defaultValue,
TimeUnit defaultTimeUnit)
|
static Configuration |
getInstance()
|
Integer |
getIntegerProperty(String key,
Integer defaultValue)
Gets the integer property. |
Long |
getLongProperty(String key,
Long defaultValue)
Gets the long property. |
List<String> |
getMatchingProperties(String rootKey)
Gets the properties that match a root key. |
Properties |
getProperties()
|
String |
getProperty(String key)
Gets the property by Key from the DEFAULT_CONFIG. |
String |
getProperty(String key,
String defaultValue)
Gets the property by Key. |
URL |
getURLProperty(String key)
Gets the uRL property. |
boolean |
hasDurationProperty(String key)
|
boolean |
hasMatchingProperty(String rootKey)
|
boolean |
hasProperty(String key)
Checks for property. |
void |
invalidate()
Method to invalidate all the cached configuration. |
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 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 String getProperty(String key,
String defaultValue)
Configuration
getProperty in interface Configurationkey - the keydefaultValue - the default value
public Long getLongProperty(String key,
Long defaultValue)
Configuration
getLongProperty in interface Configurationkey - the keydefaultValue - the default value
public Integer getIntegerProperty(String key,
Integer defaultValue)
Configuration
getIntegerProperty in interface Configurationkey - the keydefaultValue - the default value
public Boolean getBooleanProperty(String key,
Boolean defaultValue)
Configuration
getBooleanProperty in interface Configurationkey - the keydefaultValue - the default value
public Duration getDurationProperty(String key,
Long defaultValue,
TimeUnit defaultTimeUnit)
getDurationProperty in interface Configurationpublic boolean hasDurationProperty(String key)
hasDurationProperty in interface Configurationpublic URL getURLProperty(String key)
Configuration
getURLProperty in interface Configurationkey - the string
public String getProperty(String key)
Configuration
getProperty in interface Configurationkey - the key
public static void reset()
public void reload()
throws TechnicalConnectorException
reload in interface ConfigurationTechnicalConnectorExceptionpublic boolean containsKey(String key)
Configuration
containsKey in interface Configurationkey - the key
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 boolean hasMatchingProperty(String rootKey)
hasMatchingProperty in interface Configurationpublic List<String> getMatchingProperties(String rootKey)
Configuration
getMatchingProperties in interface ConfigurationrootKey - the root key
@Deprecated
public void setConfigLocation(String location)
throws TechnicalConnectorException
Configuration
setConfigLocation in interface ConfigurationTechnicalConnectorException
public Configuration getCurrentConfig()
throws TechnicalConnectorException
getCurrentConfig in interface ConfigurationTechnicalConnectorException
public static Configuration getInstance()
throws TechnicalConnectorException
TechnicalConnectorExceptionpublic Properties getProperties()
public void invalidate()
Configuration
invalidate in interface Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||