|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.config.impl.AbstractConfigurationImpl
public abstract class AbstractConfigurationImpl
Constructor Summary | |
---|---|
AbstractConfigurationImpl()
|
Method Summary | |
---|---|
boolean |
containsKey(String key)
Property contains key. |
Boolean |
getBooleanProperty(String key,
Boolean defaultValue)
Gets the boolean property. |
Duration |
getDurationProperty(String key,
Long defaultValue,
TimeUnit defaultTimeUnit)
|
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. |
String |
getProperty(String key)
Gets the property by Key from the DEFAULT_CONFIG. |
abstract 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 |
hasMatchingProperty(String rootKey,
int i)
|
abstract boolean |
hasProperty(String key)
Checks for property. |
abstract 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 |
Methods inherited from interface be.ehealth.technicalconnector.config.Configuration |
---|
getCurrentConfig, invalidate, isReloading, reload, setConfigLocation |
Constructor Detail |
---|
public AbstractConfigurationImpl()
Method Detail |
---|
public Long getLongProperty(String key, Long defaultValue)
Configuration
getLongProperty
in interface Configuration
key
- the keydefaultValue
- the default value
public Integer getIntegerProperty(String key, Integer defaultValue)
Configuration
getIntegerProperty
in interface Configuration
key
- the keydefaultValue
- the default value
public Boolean getBooleanProperty(String key, Boolean defaultValue)
Configuration
getBooleanProperty
in interface Configuration
key
- the keydefaultValue
- the default value
public Duration getDurationProperty(String key, Long defaultValue, TimeUnit defaultTimeUnit)
getDurationProperty
in interface Configuration
public boolean hasDurationProperty(String key)
hasDurationProperty
in interface Configuration
public URL getURLProperty(String key)
Configuration
getURLProperty
in interface Configuration
key
- the string
public String getProperty(String key)
Configuration
getProperty
in interface Configuration
key
- the key
public boolean containsKey(String key)
Configuration
containsKey
in interface Configuration
key
- the key
public abstract void setProperty(String key, String value)
Configuration
setProperty
in interface Configuration
key
- the keyvalue
- the valuepublic abstract boolean hasProperty(String key)
Configuration
hasProperty
in interface Configuration
key
- the key
public abstract String getProperty(String key, String defaultValue)
Configuration
getProperty
in interface Configuration
key
- the keydefaultValue
- the default value
public boolean hasMatchingProperty(String rootKey)
hasMatchingProperty
in interface Configuration
public boolean hasMatchingProperty(String rootKey, int i)
public List<String> getMatchingProperties(String rootKey)
Configuration
getMatchingProperties
in interface Configuration
rootKey
- the root key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |