Class HoconConfigParserBuilder
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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ConfigParserget()default HoconConfigParserBuilderidentity()Instance of this builder as the correct type.default HoconConfigParserBuilderupdate(Consumer<HoconConfigParserBuilder> consumer) Update the builder in a fluent API way.
-
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.
-