Package io.confound.config.properties
Class PropertiesConfiguration
- java.lang.Object
-
- io.confound.config.AbstractConfiguration
-
- io.confound.config.BaseConfiguration<java.lang.String>
-
- io.confound.config.AbstractStringConfiguration
-
- io.confound.config.properties.PropertiesConfiguration
-
- All Implemented Interfaces:
io.confound.config.Configuration
public class PropertiesConfiguration extends io.confound.config.AbstractStringConfiguration
Configuration implementation backed byProperties
.- Author:
- Garret Wilson
- See Also:
Properties
,Properties.getProperty(String)
-
-
Constructor Summary
Constructors Constructor Description PropertiesConfiguration(java.util.Properties properties)
Properties constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<java.lang.String>
findConfigurationValueImpl(java.lang.String key)
protected boolean
hasConfigurationValueImpl(java.lang.String key)
-
Methods inherited from class io.confound.config.AbstractStringConfiguration
dereferenceString, findBoolean, findConfigurationValue, findDouble, findInt, findLong, findObject, findPath, findString, findUri
-
Methods inherited from class io.confound.config.BaseConfiguration
convertValue, hasConfigurationValue, normalizeKey
-
-
-
-
Method Detail
-
hasConfigurationValueImpl
protected boolean hasConfigurationValueImpl(java.lang.String key) throws io.confound.config.ConfigurationException
- Overrides:
hasConfigurationValueImpl
in classio.confound.config.BaseConfiguration<java.lang.String>
- Implementation Specification:
- This implementation delegates to
Properties.contains(Object)
. - Throws:
io.confound.config.ConfigurationException
-
findConfigurationValueImpl
protected java.util.Optional<java.lang.String> findConfigurationValueImpl(java.lang.String key) throws io.confound.config.ConfigurationException
- Specified by:
findConfigurationValueImpl
in classio.confound.config.BaseConfiguration<java.lang.String>
- Implementation Specification:
- This implementation delegates to
Properties.getProperty(String)
. - Throws:
io.confound.config.ConfigurationException
-
-