Interface ConfigurationMapper<S>
- Type Parameters:
S
- the source type
- All Known Subinterfaces:
ConfigurationMapperHocon
,ConfigurationMapperMap
,ConfigurationMapperTable<V>
,ConfigurationMapperXml
- All Known Implementing Classes:
ConfigurationMapperHocon.Default
,ConfigurationMapperMap.Default
,ConfigurationMapperTable.Default
,ConfigurationMapperXml.Default
public interface ConfigurationMapper<S>
A utility interface to map values from arbitrary sources to a
Configuration.Builder()
.-
Method Summary
Modifier and Type Method Description Configuration.Builder
mapConfiguration(Configuration.Builder builder, S source)
Adds all entries contained in a source to the givenConfiguration.Builder()
.default Configuration.Builder
mapConfiguration(S source)
Creates aConfiguration.Builder()
and adds all entries contained in the given source.
-
Method Details
-
mapConfiguration
Creates aConfiguration.Builder()
and adds all entries contained in the given source.- Parameters:
source
- the source to take the entries from- Returns:
- a new
Configuration.Builder()
-
mapConfiguration
Adds all entries contained in a source to the givenConfiguration.Builder()
.- Parameters:
builder
- the builder to map the entries tosource
- the source to take the entries from- Returns:
- the given
Configuration.Builder()
-