public interface Configuration
Modifier and Type | Method and Description |
---|---|
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) |
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.
|
String |
getProperty(String key,
String defaultValue)
Gets the property by Key.
|
URL |
getURLProperty(String property)
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.
|
boolean |
isReloading() |
void |
reload()
Method to reload the configuration modules.
|
void |
setProperty(String key,
String value)
Method to override a property at runtime.
|
String getProperty(String key, String defaultValue)
key
- the keydefaultValue
- the default valueLong getLongProperty(String key, Long defaultValue)
key
- the keydefaultValue
- the default valueInteger getIntegerProperty(String key, Integer defaultValue)
key
- the keydefaultValue
- the default valueBoolean getBooleanProperty(String key, Boolean defaultValue)
key
- the keydefaultValue
- the default valueString getProperty(String key)
key
- the keyboolean containsKey(String key)
key
- the keyURL getURLProperty(String property)
property
- the stringvoid setProperty(String key, String value)
key
- the keyvalue
- the valueboolean hasProperty(String key)
key
- the keyboolean hasMatchingProperty(String rootKey)
Duration getDurationProperty(String key, Long defaultValue, TimeUnit defaultTimeUnit)
boolean hasDurationProperty(String key)
List<String> getMatchingProperties(String rootKey)
rootKey
- the root keyConfiguration getCurrentConfig() throws TechnicalConnectorException
TechnicalConnectorException
void invalidate() throws TechnicalConnectorException
TechnicalConnectorException
void reload() throws TechnicalConnectorException
This method must be called when you change properties at runtime that are used by configuration modules.
TechnicalConnectorException
boolean isReloading()
Connector Packaging TECHNICAL 4.0.2 API
Copyright © {inceptionYear}-2021 eHealth. All Rights Reserved.