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, hasMatchingPropertypublic 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
TechnicalConnectorExceptionpublic void reload()
throws TechnicalConnectorException
TechnicalConnectorExceptionpublic boolean isReloading()
public Configuration getCurrentConfig() throws TechnicalConnectorException
TechnicalConnectorExceptionpublic void setProperty(String key, String value)
Configurationkey - the keyvalue - the valuepublic boolean hasProperty(String key)
Configurationkey - the keypublic String getProperty(String key, String defaultValue)
Configurationkey - the keydefaultValue - the default valuepublic boolean endpointToTrim(String key)
public boolean elseToTrim(String key)
@Deprecated public Properties getProperties()
public void invalidate()
Configuration
Connector Packaging generic 4.3.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.