Package io.helidon.config.spi
Interface ConfigContext
- 
 public interface ConfigContextContext created by aConfig.Builderas it constructs aConfig.The context is typically used in implementations of io.helidon.config.spiinterfaces to share common information.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<ConfigParser>findParser(String mediaType)Returns the first appropriateConfigParserinstance that supports the specifiedcontent media type.
 
- 
- 
- 
Method Detail- 
findParserOptional<ConfigParser> findParser(String mediaType) Returns the first appropriateConfigParserinstance that supports the specifiedcontent media type.Note that the application can explicitly register parsers with a builder by invoking the Config.Builder.addParser(ConfigParser)method. The config system also loads parsers using the JavaServiceLoadermechanism and automatically registers such loaded parsers with eachBuilderunless the application has invoked theConfig.Builder.disableParserServices()method.- Parameters:
- mediaType- a media type for which a parser is needed
- Returns:
- Optional<ConfigParser>(- Optional.empty()if no appropriate parser exists)
 
 
- 
 
-