Package io.helidon.config.hocon
Class HoconConfigParserBuilder
- java.lang.Object
-
- io.helidon.config.hocon.HoconConfigParserBuilder
-
- All Implemented Interfaces:
Builder<ConfigParser>
,Supplier<ConfigParser>
public final class HoconConfigParserBuilder extends Object implements Builder<ConfigParser>
HOCON ConfigParser Builder.HOCON resolving substitutions support
is by default enabled.ConfigResolveOptions.defaults()
is used to resolve loaded configuration. It is possible todisable resolving
feature or specify customConfigResolveOptions
instance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigParser
build()
Builds new instance of HOCON ConfigParser.static ConfigParser
buildDefault()
Creates new instance of HOCON ConfigParser with default behaviour, i.e.static HoconConfigParserBuilder
create()
Creates new instance of Builder.HoconConfigParserBuilder
disableResolving()
Disables HOCON resolving substitutions support.HoconConfigParserBuilder
resolveOptions(ConfigResolveOptions resolveOptions)
Sets custom instance ofConfigResolveOptions
.
-
-
-
Method Detail
-
buildDefault
public static ConfigParser buildDefault()
Creates new instance of HOCON ConfigParser with default behaviour, i.e. with same behaviour as in case the parser is loaded automatically byServiceLoader
(seepackage description
).- Returns:
- new instance HOCON ConfigParser
- See Also:
io.helidon.config.spi
-
create
public static HoconConfigParserBuilder create()
Creates new instance of Builder.- Returns:
- new instance of Builder.
-
disableResolving
public HoconConfigParserBuilder disableResolving()
Disables HOCON resolving substitutions support.- Returns:
- modified builder instance
-
resolveOptions
public HoconConfigParserBuilder resolveOptions(ConfigResolveOptions resolveOptions)
Sets custom instance ofConfigResolveOptions
.By default
ConfigResolveOptions.defaults()
is used.- Parameters:
resolveOptions
- resolve options- Returns:
- modified builder instance
-
build
public ConfigParser build()
Builds new instance of HOCON ConfigParser.- Specified by:
build
in interfaceBuilder<ConfigParser>
- Returns:
- new instance of HOCON ConfigParser.
-
-