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 Details

    • resolvingEnabled

      public HoconConfigParserBuilder resolvingEnabled(boolean enabled)
      Enables/disables full HOCON substitution resolution support. Default is false.

      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

      public HoconConfigParserBuilder resolveOptions(ConfigResolveOptions resolveOptions)
      Sets custom instance of ConfigResolveOptions.

      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 interface Builder<HoconConfigParserBuilder,ConfigParser>
      Returns:
      new instance of HOCON ConfigParser.