|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configuration
The interface that describes the configuration.
Method Summary | |
---|---|
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. |
void |
reload()
Method to reload the configuration modules. |
void |
setConfigLocation(String location)
Deprecated. use ConfigFactory.setConfigLocation(location) instead. |
void |
setProperty(String key,
String value)
Method to override a property at runtime. |
Method Detail |
---|
String getProperty(String key, String defaultValue)
key
- the keydefaultValue
- the default value
Long getLongProperty(String key, Long defaultValue)
key
- the keydefaultValue
- the default value
Integer getIntegerProperty(String key, Integer defaultValue)
key
- the keydefaultValue
- the default value
Boolean getBooleanProperty(String key, Boolean defaultValue)
key
- the keydefaultValue
- the default value
String getProperty(String key)
key
- the key
boolean containsKey(String key)
key
- the key
URL getURLProperty(String property)
property
- the string
void setProperty(String key, String value)
key
- the keyvalue
- the valueboolean hasProperty(String key)
key
- the key
boolean hasMatchingProperty(String rootKey)
Duration getDurationProperty(String key, Long defaultValue, TimeUnit defaultTimeUnit)
boolean hasDurationProperty(String key)
List<String> getMatchingProperties(String rootKey)
rootKey
- the root key
@Deprecated void setConfigLocation(String location) throws TechnicalConnectorException
location
-
TechnicalConnectorException
Configuration 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |