Class Configuration.Builder.Default
java.lang.Object
one.microstream.configuration.types.Configuration.Builder.Default
- All Implemented Interfaces:
Configuration.Builder
- Enclosing interface:
- Configuration.Builder
public static class Configuration.Builder.Default extends Object implements Configuration.Builder
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.configuration.types.Configuration.Builder
Configuration.Builder.Default
-
Method Summary
Modifier and Type Method Description Configuration.Default
buildConfiguration()
Finishes the building and returns the resultingConfiguration
.Configuration.Builder
child(String key)
Creates a builder for a child configuration.Configuration.Builder
set(String key, String value)
Sets either a simple key-value pair (foo=bar) or an entry in a child-configuration (full.qualified.foo=bar).Configuration.Builder
setAll(XGettingCollection<KeyValue<String,String>> properties)
Sets many entries at once.Configuration.Builder
setAll(KeyValue<String,String>... properties)
Sets many entries at once.Configuration.Builder
valueMapperProvider(ConfigurationValueMapperProvider valueMapperProvider)
Sets theConfigurationValueMapperProvider
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.configuration.types.Configuration.Builder
child, load, map
-
Method Details
-
valueMapperProvider
public Configuration.Builder valueMapperProvider(ConfigurationValueMapperProvider valueMapperProvider)Description copied from interface:Configuration.Builder
Sets theConfigurationValueMapperProvider
. Use this method to insert user-defined value mappers.- Specified by:
valueMapperProvider
in interfaceConfiguration.Builder
- Parameters:
valueMapperProvider
- the new mapper provider- Returns:
- this builder
-
set
Description copied from interface:Configuration.Builder
Sets either a simple key-value pair (foo=bar) or an entry in a child-configuration (full.qualified.foo=bar).- Specified by:
set
in interfaceConfiguration.Builder
- Parameters:
key
- simple or full-qualified key, cannot be empty ornull
value
- the value to set, cannot benull
- Returns:
- this builder
-
child
Description copied from interface:Configuration.Builder
Creates a builder for a child configuration.- Specified by:
child
in interfaceConfiguration.Builder
- Parameters:
key
- the key for the child configuration- Returns:
- a new builder
- See Also:
Configuration.Builder.child(String, Consumer)
-
setAll
Description copied from interface:Configuration.Builder
Sets many entries at once.- Specified by:
setAll
in interfaceConfiguration.Builder
- Parameters:
properties
- the key-value pairs- Returns:
- this builder
- See Also:
Configuration.Builder.set(String, String)
-
setAll
Description copied from interface:Configuration.Builder
Sets many entries at once.- Specified by:
setAll
in interfaceConfiguration.Builder
- Parameters:
properties
- the key-value pairs- Returns:
- this builder
- See Also:
Configuration.Builder.set(String, String)
-
buildConfiguration
Description copied from interface:Configuration.Builder
Finishes the building and returns the resultingConfiguration
.- Specified by:
buildConfiguration
in interfaceConfiguration.Builder
- Returns:
- the
Configuration
with all values and child-configurations from this builder
-