java.lang.Object
io.helidon.config.yaml.YamlConfigParser
- All Implemented Interfaces:
ConfigParser
YAML
ConfigParser implementation that supports "application/x-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.
Priority of the YamlConfigParser to be used by Config.Builder,
if loaded automatically as a service, is 200.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.config.spi.ConfigParser
ConfigParser.Content -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA String constant representing "application/x-yaml" media type.static final intPriority of the parser used if registered byConfig.Builderautomatically. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic YamlConfigParsercreate()Create a new YAML Config Parser.parse(ConfigParser.Content content) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.config.spi.ConfigParser
parse
-
Field Details
-
MEDIA_TYPE_APPLICATION_YAML
A String constant representing "application/x-yaml" media type.- See Also:
-
PRIORITY
public static final int PRIORITYPriority of the parser used if registered byConfig.Builderautomatically.- 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:
supportedMediaTypesin interfaceConfigParser
-
supportedSuffixes
- Specified by:
supportedSuffixesin interfaceConfigParser
-
parse
- Specified by:
parsein interfaceConfigParser- Throws:
ConfigParserException
-
create()