java.lang.Object
io.helidon.config.PropertiesConfigParser
- All Implemented Interfaces:
- ConfigParser
ConfigParser implementation that parses Java Properties content.
 
 The parser implementation supports ServiceLoader, i.e. Config.Builder
 can automatically load and register PropertiesConfigParser instance,
 if not disabled.
 And of course it can be registered programmatically.
 
 Weight of the PropertiesConfigParser to be used by Config.Builder,
 if loaded automatically as a service, is 90.0.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.helidon.config.spi.ConfigParserConfigParser.Content
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final MediaTypeJava properties media type.static final doublePriority of the parser used if registered byConfig.Builderautomatically.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionparse(ConfigParser.Content content) Parses a specifiedConfigContentinto ahierarchical configuration representation.Returns set of supported media types by the parser.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.config.spi.ConfigParserparse, supportedSuffixes
- 
Field Details- 
MEDIA_TYPE_TEXT_JAVA_PROPERTIESJava properties media type.
- 
WEIGHTpublic static final double WEIGHTPriority of the parser used if registered byConfig.Builderautomatically.- See Also:
 
 
- 
- 
Constructor Details- 
PropertiesConfigParserpublic PropertiesConfigParser()Required public constructor forServiceLoader.
 
- 
- 
Method Details- 
supportedMediaTypesDescription copied from interface:ConfigParserReturns set of supported media types by the parser.Set of supported media types is used when config system looks for appropriate parser based on media type of content. ParsableSourceimplementations can useMediaTypesto probe for media type of content to provide it to config system throughConfigParser.Content.Builder.mediaType(io.helidon.common.media.type.MediaType).- Specified by:
- supportedMediaTypesin interface- ConfigParser
- Returns:
- supported media types by the parser
 
- 
parseDescription copied from interface:ConfigParserParses a specifiedConfigContentinto ahierarchical configuration representation.Never returns null.- Specified by:
- parsein interface- ConfigParser
- Parameters:
- content- a content to be parsed
- Returns:
- parsed hierarchical configuration representation
- Throws:
- ConfigParserException- in case of problem to parse configuration from the source
 
 
-