Module io.inverno.mod.configuration
Class SystemPropertiesConfigurationSource
java.lang.Object
io.inverno.mod.configuration.AbstractConfigurationSource<AbstractPropertiesConfigurationSource.PropertyConfigurationQuery<String,SystemPropertiesConfigurationSource>,AbstractPropertiesConfigurationSource.PropertyExecutableConfigurationQuery<String,SystemPropertiesConfigurationSource>,AbstractPropertiesConfigurationSource.PropertyListConfigurationQuery<String,SystemPropertiesConfigurationSource>,String>
io.inverno.mod.configuration.AbstractPropertiesConfigurationSource<String,SystemPropertiesConfigurationSource>
io.inverno.mod.configuration.source.SystemPropertiesConfigurationSource
- All Implemented Interfaces:
ConfigurationSource<AbstractPropertiesConfigurationSource.PropertyConfigurationQuery<String,
SystemPropertiesConfigurationSource>, AbstractPropertiesConfigurationSource.PropertyExecutableConfigurationQuery<String, SystemPropertiesConfigurationSource>, AbstractPropertiesConfigurationSource.PropertyListConfigurationQuery<String, SystemPropertiesConfigurationSource>>
public class SystemPropertiesConfigurationSource
extends AbstractPropertiesConfigurationSource<String,SystemPropertiesConfigurationSource>
A configuration source that looks up properties from the system properties.
Note that this source doesn't support parameterized queries, regardless of the parameters specified in a query, only the configuration key name is considered when resolving a value.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inverno.mod.configuration.AbstractPropertiesConfigurationSource
AbstractPropertiesConfigurationSource.PropertyConfigurationQuery<A,
B extends AbstractPropertiesConfigurationSource<A, B>>, AbstractPropertiesConfigurationSource.PropertyConfigurationQueryResult<A, B extends AbstractPropertiesConfigurationSource<A, B>>, AbstractPropertiesConfigurationSource.PropertyExecutableConfigurationQuery<A, B extends AbstractPropertiesConfigurationSource<A, B>>, AbstractPropertiesConfigurationSource.PropertyListConfigurationQuery<A, B extends AbstractPropertiesConfigurationSource<A, B>> -
Field Summary
Fields inherited from class io.inverno.mod.configuration.AbstractConfigurationSource
decoder
-
Constructor Summary
ConstructorDescriptionCreates a system properties configuration source.Creates a system properties configuration source with the specified string value decoder. -
Method Summary
Modifier and TypeMethodDescriptiongetPropertyValue
(String name) Returns the value of the property identified by the specified name.Returns the list of property names managed by the source.Methods inherited from class io.inverno.mod.configuration.AbstractPropertiesConfigurationSource
get, list
Methods inherited from class io.inverno.mod.configuration.AbstractConfigurationSource
getDecoder, setDecoder
-
Constructor Details
-
SystemPropertiesConfigurationSource
public SystemPropertiesConfigurationSource()Creates a system properties configuration source.
-
SystemPropertiesConfigurationSource
Creates a system properties configuration source with the specified string value decoder.
- Parameters:
decoder
- a string decoder
-
-
Method Details
-
getPropertyValue
Description copied from class:AbstractPropertiesConfigurationSource
Returns the value of the property identified by the specified name.
This methods should rely on an underlying synchronous property accessor.
- Specified by:
getPropertyValue
in classAbstractPropertiesConfigurationSource<String,
SystemPropertiesConfigurationSource> - Parameters:
name
- the configuration property name- Returns:
- an optional returning the configuration property value, or an empty optional if there's no value defined for the specified key
-
listProperties
Description copied from class:AbstractPropertiesConfigurationSource
Returns the list of property names managed by the source.
- Specified by:
listProperties
in classAbstractPropertiesConfigurationSource<String,
SystemPropertiesConfigurationSource> - Returns:
- a list of configuration property names
-