- java.lang.Object
 - 
- io.helidon.config.PropertiesConfigParser
 
 
- 
- All Implemented Interfaces:
 ConfigParser
@Priority(200) public class PropertiesConfigParser extends Object implements ConfigParser
ConfigParserimplementation that parses Java Properties content.The parser implementation supports
ServiceLoader, i.e.Config.Buildercan automatically load and registerPropertiesConfigParserinstance, if notdisabled. And of course it can beregistered programmatically.Priority of the
PropertiesConfigParserto be used byConfig.Builder, if loaded automatically as aservice, is 200. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface io.helidon.config.spi.ConfigParser
ConfigParser.Content 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static StringMEDIA_TYPE_TEXT_JAVA_PROPERTIESA String constant representing "text/x-java-properties" media type.static intPRIORITYPriority of the parser used if registered byConfig.Builderautomatically. 
- 
Constructor Summary
Constructors Constructor Description PropertiesConfigParser() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigNode.ObjectNodeparse(ConfigParser.Content content)Parses a specifiedConfigContentinto ahierarchical configuration representation.Set<String>supportedMediaTypes()Returns set of supported media types by the parser.- 
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, supportedSuffixes 
 - 
 
 - 
 
- 
- 
Field Detail
- 
MEDIA_TYPE_TEXT_JAVA_PROPERTIES
public static final String MEDIA_TYPE_TEXT_JAVA_PROPERTIES
A String constant representing "text/x-java-properties" media type.- See Also:
 - Constant Field Values
 
 
- 
PRIORITY
public static final int PRIORITY
Priority of the parser used if registered byConfig.Builderautomatically.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
supportedMediaTypes
public Set<String> supportedMediaTypes()
Description 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(String).- Specified by:
 supportedMediaTypesin interfaceConfigParser- Returns:
 - supported media types by the parser
 
 
- 
parse
public ConfigNode.ObjectNode parse(ConfigParser.Content content) throws ConfigParserException
Description copied from interface:ConfigParserParses a specifiedConfigContentinto ahierarchical configuration representation.Never returns
null.- Specified by:
 parsein interfaceConfigParser- Parameters:
 content- a content to be parsed- Returns:
 - parsed hierarchical configuration representation
 - Throws:
 ConfigParserException- in case of problem to parse configuration from the source
 
 - 
 
 -