java.lang.Object
io.helidon.config.hocon.HoconConfigParserBuilder
- All Implemented Interfaces:
Builder<HoconConfigParserBuilder,,ConfigParser> Supplier<ConfigParser>
public final class HoconConfigParserBuilder
extends Object
implements Builder<HoconConfigParserBuilder,ConfigParser>
HOCON ConfigParser Builder.
Full HOCON substitution resolution is disabled by default.
It is possible to resolvingEnabled(boolean) enable this feature or specify custom
ConfigResolveOptions.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds new instance of HOCON ConfigParser.resolveOptions(ConfigResolveOptions resolveOptions) Sets custom instance ofConfigResolveOptions.resolvingEnabled(boolean enabled) Enables/disables full HOCON substitution resolution support.
-
Method Details
-
resolvingEnabled
Enables/disables full HOCON substitution resolution support. Default isfalse.When disabled, the parser may still use local HOCON resolution to materialize HOCON merges and self-references from the parsed source and its includes. Required unresolved substitutions are preserved for later resolution by the Helidon Config system.
- Parameters:
enabled- use to enable or disable full substitution resolution- Returns:
- modified builder instance
-
resolveOptions
Sets custom instance ofConfigResolveOptions.By default
ConfigResolveOptions.defaults()is used.- Parameters:
resolveOptions- resolve options- Returns:
- modified builder instance
-
build
Builds new instance of HOCON ConfigParser.- Specified by:
buildin interfaceBuilder<HoconConfigParserBuilder,ConfigParser> - Returns:
- new instance of HOCON ConfigParser.
-