java.lang.Object
io.helidon.config.yaml.YamlConfigParser
- All Implemented Interfaces:
ConfigParser
YAML
ConfigParser
implementation that supports MediaTypes.APPLICATION_YAML
.
The parser implementation supports ServiceLoader
, i.e. Config.Builder
can automatically load and register YamlConfigParser
instance,
if not disabled
.
And of course it can be registered programmatically
.
Weight of the YamlConfigParser
to be used by Config.Builder
,
if loaded automatically as a service
, is 90.0.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.config.spi.ConfigParser
ConfigParser.Content
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
Priority of the parser used if registered byConfig.Builder
automatically. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic YamlConfigParser
create()
Create a new YAML Config Parser.parse
(ConfigParser.Content content) Set<io.helidon.common.media.type.MediaType>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.config.spi.ConfigParser
parse
-
Field Details
-
WEIGHT
public static final double WEIGHTPriority of the parser used if registered byConfig.Builder
automatically.- See Also:
-
-
Constructor Details
-
YamlConfigParser
Deprecated.This method should not be directly used, usecreate()
Default constructor needed by Java Service loader.
-
-
Method Details
-
create
Create a new YAML Config Parser.- Returns:
- a new instance of parser for YAML
-
supportedMediaTypes
- Specified by:
supportedMediaTypes
in interfaceConfigParser
-
supportedSuffixes
- Specified by:
supportedSuffixes
in interfaceConfigParser
-
parse
- Specified by:
parse
in interfaceConfigParser
- Throws:
ConfigParserException
-
create()