- 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 Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HoconConfigParser
build()
Builds new instance of HOCON ConfigParser.HoconConfigParserBuilder
disableResolving()
Deprecated, for removal: This API element is subject to removal in a future version.HoconConfigParserBuilder
resolveOptions(ConfigResolveOptions resolveOptions)
Sets custom instance ofConfigResolveOptions
.HoconConfigParserBuilder
resolvingEnabled(boolean enabled)
Enables/disables HOCON resolving substitutions support.
-
-
-
Method Detail
-
disableResolving
@Deprecated(since="2.5.1", forRemoval=true) public HoconConfigParserBuilder 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
public HoconConfigParserBuilder resolvingEnabled(boolean enabled)
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
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 HoconConfigParser build()
Builds new instance of HOCON ConfigParser.- Specified by:
build
in interfaceBuilder<ConfigParser>
- Returns:
- new instance of HOCON ConfigParser.
-
-