Package org.jolokia.server.core.config
Interface Configuration
- All Known Implementing Classes:
StaticConfiguration
public interface Configuration
Interface for accessing Jolokia configuration.
- Since:
- 13.04.13
- Author:
- roland
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(ConfigKey pKey) Check whether the given configuration holds a value for the given keyGet a configuration value if set as configuration or the default value if notGet a configuration value if set as configuration or the default value if notGet all keys stored in this configuration
-
Method Details
-
getConfig
Get a configuration value if set as configuration or the default value if not- Parameters:
pKey- the configuration key to lookup- Returns:
- the configuration value or the default value if no configuration was given.
-
getConfig
Get a configuration value if set as configuration or the default value if not- Parameters:
pKey- the configuration key to lookupcheckSysOrEnv- whether system property or environment variable should be checked first- Returns:
- the configuration value or the default value if no configuration was given.
-
getConfigKeys
Get all keys stored in this configuration -
containsKey
Check whether the given configuration holds a value for the given key- Parameters:
pKey- key to check- Returns:
- true if the configuration has this key
-