Interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>

Type Parameters:
BUILDER - type of the builder
PROTOTYPE - type of the prototype to be built
All Superinterfaces:
io.helidon.builder.api.Prototype.Builder<BUILDER,PROTOTYPE>
Enclosing class:
ConfigBuilderSupport

public static interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE> extends io.helidon.builder.api.Prototype.Builder<BUILDER,PROTOTYPE>
Extension of Prototype.Builder that supports configuration. If a blueprint is marked as @Configured, build will accept configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    config(Config config)
    Update builder from configuration.

    Methods inherited from interface io.helidon.builder.api.Prototype.Builder

    buildPrototype, self
  • Method Details

    • config

      BUILDER config(Config config)
      Update builder from configuration. Any configured option that is defined on this prototype will be checked in configuration, and if it exists, it will override current value for that option on this builder. Options that do not exist in the provided config will not impact current values. The config instance is kept and may be used in builder decorator, it is not available in prototype implementation.
      Parameters:
      config - configuration to use
      Returns:
      updated builder instance