public interface ConfigContext
Config.Builder as it constructs a
Config.
The context is typically used in implementations of io.helidon.config.spi
interfaces to share common information.
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ConfigParser> |
findParser(java.lang.String mediaType) |
Returns the first appropriate
ConfigParser instance that supports
the specified
content media type. |
java.util.Optional<ConfigParser> findParser(java.lang.String mediaType)
ConfigParser instance that supports
the specified
content 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 Java
ServiceLoader mechanism and automatically registers
such loaded parsers with each Builder unless the application has
invoked the Config.Builder.disableParserServices()
method.
mediaType - a media type for which a parser is neededOptional<ConfigParser> (Optional.empty() if no
appropriate parser exists)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.