Module io.inverno.mod.configuration
Package io.inverno.mod.configuration
Class AbstractConfigurationSource<A extends ConfigurationQuery<A,B>,B extends ExecutableConfigurationQuery<A,B>,C extends ListConfigurationQuery<C>,D>
java.lang.Object
io.inverno.mod.configuration.AbstractConfigurationSource<A,B,C,D>
- Type Parameters:
A
- source specific configuration query typeB
- source specific executable configuration query typeC
- source specific list configuration query typeD
- raw configuration value type
- All Implemented Interfaces:
ConfigurationSource<A,
B, C>
- Direct Known Subclasses:
AbstractConfigurableConfigurationSource
,AbstractHashConfigurationSource
,AbstractPropertiesConfigurationSource
public abstract class AbstractConfigurationSource<A extends ConfigurationQuery<A,B>,B extends ExecutableConfigurationQuery<A,B>,C extends ListConfigurationQuery<C>,D>
extends Object
implements ConfigurationSource<A,B,C>
Base implementation for ConfigurationSource
.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected SplittablePrimitiveDecoder
<D> The data encoder to use to decode configuration data from the data source. -
Constructor Summary
ConstructorDescriptionCreates a configuration source with the specified decoder. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value decoder.void
setDecoder
(SplittablePrimitiveDecoder<D> decoder) Sets the configuration value decoder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.configuration.ConfigurationSource
get, list
-
Field Details
-
decoder
The data encoder to use to decode configuration data from the data source.
-
-
Constructor Details
-
AbstractConfigurationSource
Creates a configuration source with the specified decoder.
- Parameters:
decoder
- a splittable primitive decoder- Throws:
NullPointerException
- if the specified decoder is null
-
-
Method Details
-
getDecoder
Returns the value decoder.
- Returns:
- a splittable primitive decoder
-
setDecoder
Sets the configuration value decoder.
- Parameters:
decoder
- a splittable primitive decoder- Throws:
NullPointerException
- if the specified decoder is null
-