Interface ConfigurationValueMapperProvider.Builder
- All Known Implementing Classes:
ConfigurationValueMapperProvider.Builder.Default
- Enclosing interface:
- ConfigurationValueMapperProvider
public static interface ConfigurationValueMapperProvider.Builder
Builder for a
ConfigurationValueMapperProvider
.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ConfigurationValueMapperProvider.Builder.Default
-
Method Summary
Modifier and Type Method Description <T> ConfigurationValueMapperProvider.Builder
add(ConfigurationValueMapper<T> mapper)
Adds a value mapper for a certain type.ConfigurationValueMapperProvider
build()
Builds the resultingConfigurationValueMapperProvider
.
-
Method Details
-
add
Adds a value mapper for a certain type. An possibly existing mapper for this type will be overwritten.- Type Parameters:
T
- the target type- Parameters:
mapper
- the mapper to add- Returns:
- this builder
-
build
ConfigurationValueMapperProvider build()Builds the resultingConfigurationValueMapperProvider
.- Returns:
- a new
ConfigurationValueMapperProvider
-