Interface ConfigurationParser
- All Known Subinterfaces:
ConfigurationParserHocon,ConfigurationParserIni,ConfigurationParserXml,ConfigurationParserYaml
- All Known Implementing Classes:
ConfigurationParserHocon.Default,ConfigurationParserIni.Default,ConfigurationParserXml.Default,ConfigurationParserYaml.Default
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConfigurationParser
A utility interface to parse values from external formats to a
Configuration.Builder().-
Method Summary
Modifier and Type Method Description default Configuration.BuilderparseConfiguration(String input)Creates aConfiguration.Builder()and adds all entries contained in the given input.Configuration.BuilderparseConfiguration(Configuration.Builder builder, String input)Parses all entries contained in the input to the givenConfiguration.Builder().
-
Method Details
-
parseConfiguration
Creates aConfiguration.Builder()and adds all entries contained in the given input.- Parameters:
input- the source to parse the entries from- Returns:
- a new
Configuration.Builder()
-
parseConfiguration
Parses all entries contained in the input to the givenConfiguration.Builder().- Parameters:
builder- the builder to map the entries toinput- the source to parse the entries from- Returns:
- the given
Configuration.Builder()
-