|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.config.impl.AbstractConfigurationImpl
be.ehealth.technicalconnector.config.impl.ConfigurationImpl
public final class ConfigurationImpl
Implementation of Configuration
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
setConfigLocation(String location)
Deprecated. use ConfigFactory.setConfigLocation(String location) |
void |
setProperty(String key,
String value)
Method to override a property at runtime. |
Methods inherited from class be.ehealth.technicalconnector.config.impl.AbstractConfigurationImpl |
---|
containsKey, getBooleanProperty, getDurationProperty, getIntegerProperty, getLongProperty, getMatchingProperties, getProperty, getURLProperty, hasDurationProperty, hasMatchingProperty, hasMatchingProperty |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SYSPROP_MODULE_LOADING
Default value: true
public static final String SYSPROP_CONFIG_LOADING
Method Detail |
---|
public static void reset()
public void reload() throws TechnicalConnectorException
TechnicalConnectorException
public boolean isReloading()
@Deprecated public void setConfigLocation(String location) throws TechnicalConnectorException
ConfigFactory.setConfigLocation(String location)
Configuration
TechnicalConnectorException
public Configuration getCurrentConfig() throws TechnicalConnectorException
TechnicalConnectorException
public static Configuration getInstance() throws TechnicalConnectorException
TechnicalConnectorException
public void setProperty(String key, String value)
Configuration
key
- the keyvalue
- the valuepublic boolean hasProperty(String key)
Configuration
key
- the key
public String getProperty(String key, String defaultValue)
Configuration
key
- the keydefaultValue
- the default value
public boolean endpointToTrim(String key)
public boolean elseToTrim(String key)
@Deprecated public Properties getProperties()
public void invalidate()
Configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |