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.
HOCON resolving substitutions support
is by default enabled.
ConfigResolveOptions.defaults()
is used to resolve loaded configuration.
It is possible to disable resolving
feature
or specify custom ConfigResolveOptions
instance.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds new instance of HOCON ConfigParser.Deprecated, for removal: This API element is subject to removal in a future version.resolveOptions
(ConfigResolveOptions resolveOptions) Sets custom instance ofConfigResolveOptions
.resolvingEnabled
(boolean enabled) Enables/disables HOCON resolving substitutions support.
-
Method Details
-
disableResolving
Deprecated, for removal: This API element is subject to removal in a future version.Disables HOCON resolving substitutions support. Default isfalse
.- Returns:
- modified builder instance
- See Also:
-
resolvingEnabled
-
resolvingEnabled
Enables/disables HOCON resolving substitutions support. Default isfalse
.Note: Even if you disable substitution at HOCON parsing time, values can still be resolved at a later time by the Helidon Config system.
- Parameters:
enabled
- use to enable or disable substitution- 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:
build
in interfaceBuilder<HoconConfigParserBuilder,
ConfigParser> - Returns:
- new instance of HOCON ConfigParser.
-