public abstract class AbstractConfigurationImpl extends Object implements Configuration
Constructor and Description |
---|
AbstractConfigurationImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
URL |
getURLProperty(String key)
Gets the uRL property.
|
boolean |
hasDurationProperty(String key) |
boolean |
hasMatchingProperty(String rootKey) |
boolean |
hasMatchingProperty(String rootKey,
int i) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentConfig, getProperty, hasProperty, invalidate, isReloading, reload, setProperty
public Long getLongProperty(String key, Long defaultValue)
Configuration
getLongProperty
in interface Configuration
key
- the keydefaultValue
- the default valuepublic Integer getIntegerProperty(String key, Integer defaultValue)
Configuration
getIntegerProperty
in interface Configuration
key
- the keydefaultValue
- the default valuepublic Boolean getBooleanProperty(String key, Boolean defaultValue)
Configuration
getBooleanProperty
in interface Configuration
key
- the keydefaultValue
- the default valuepublic 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 stringpublic String getProperty(String key)
Configuration
getProperty
in interface Configuration
key
- the keypublic boolean containsKey(String key)
Configuration
containsKey
in interface Configuration
key
- the keypublic 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
Connector Packaging TECHNICAL 4.0.2 API
Copyright © {inceptionYear}-2021 eHealth. All Rights Reserved.