Package com.github.cafapi.common.api
Interface BootstrapConfiguration
- All Known Implementing Classes:
SystemBootstrapConfiguration
public interface BootstrapConfiguration
A bootstrap configuration is a method of providing basic, initial startup configuration. This is more crude than a full
ConfigurationProvider, and only supports trivial key/value lookups.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration
(String key) Return the value of the requested configuration parameter.boolean
Return the boolean representation of the requested configuration parameter.int
Return the integer representation of the requested configuration parameter.int
getConfigurationInteger
(String key, int min, int max) Return the integer representation of the requested configuration parameter, between the minimum and maximum integers specified.boolean
Determine if a configuration parameter has been set or not.
-
Field Details
-
CONFIG_APP_NAME
Application identifier configuration parameter key. This must be in the format /a/b.- See Also:
-
OLD_CONFIG_APP_NAME
Deprecated.Old application identifier configuration parameter key.- See Also:
-
-
Method Details
-
isConfigurationPresent
Determine if a configuration parameter has been set or not.- Parameters:
key
- the config parameter to check- Returns:
- whether the config parameter is set or not
-
getConfiguration
Return the value of the requested configuration parameter.- Parameters:
key
- the config parameter to lookup- Returns:
- the value of the config parameter
- Throws:
ConfigurationException
- if the configuration parameter is not set
-
getConfigurationInteger
Return the integer representation of the requested configuration parameter.- Parameters:
key
- the config parameter to lookup- Returns:
- the value of the config parameter as an integer
- Throws:
ConfigurationException
- if the configuration parameter is not set
-
getConfigurationInteger
Return the integer representation of the requested configuration parameter, between the minimum and maximum integers specified.- Parameters:
key
- the config parameter to lookupmin
- the lower bound of the integer to be returnedmax
- the upper bound of the integer to be returned- Returns:
- the value of the config parameter as an integer, between the limits specified
- Throws:
ConfigurationException
- if the configuration parameter is not set
-
getConfigurationBoolean
Return the boolean representation of the requested configuration parameter.- Parameters:
key
- the config parameter to lookup- Returns:
- the value of the config parameter as an integer
- Throws:
ConfigurationException
- if the configuration parameter is not set
-
getServicePath
- Returns:
- an object representing the fully qualified service path of this instance
- Throws:
ConfigurationException
- if the ServicePath cannot be acquired
-