public final class ConfigurationImpl extends AbstractConfigurationImpl
Configuration
Modifier and Type | Field and Description |
---|---|
static String |
SYSPROP_CONFIG_LOADING
Property to (des)activate the loading of the property file
|
static String |
SYSPROP_MODULE_LOADING
Property to (des)activate the module loading of the configuration factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
elseToTrim(String key) |
boolean |
endpointToTrim(String key) |
Configuration |
getCurrentConfig() |
static Configuration |
getInstance() |
Properties |
getProperties()
Deprecated.
internal method, could be removed in the futur
|
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 |
setProperty(String key,
String value)
Method to override a property at runtime.
|
containsKey, getBooleanProperty, getDurationProperty, getIntegerProperty, getLongProperty, getMatchingProperties, getProperty, getURLProperty, hasDurationProperty, hasMatchingProperty, hasMatchingProperty
public static final String SYSPROP_MODULE_LOADING
Default value: true
public static final String SYSPROP_CONFIG_LOADING
public static void reset()
public static Configuration getInstance() throws TechnicalConnectorException
TechnicalConnectorException
public void reload() throws TechnicalConnectorException
TechnicalConnectorException
public boolean isReloading()
public Configuration getCurrentConfig() throws TechnicalConnectorException
TechnicalConnectorException
public void setProperty(String key, String value)
Configuration
key
- the keyvalue
- the valuepublic boolean hasProperty(String key)
Configuration
key
- the keypublic String getProperty(String key, String defaultValue)
Configuration
key
- the keydefaultValue
- the default valuepublic boolean endpointToTrim(String key)
public boolean elseToTrim(String key)
@Deprecated public Properties getProperties()
public void invalidate()
Configuration
Connector Packaging TECHNICAL 4.3.0-beta-3 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.