Class GeneratedConfigBeanBuilderBase

java.lang.Object
io.helidon.builder.config.spi.GeneratedConfigBeanBuilderBase
All Implemented Interfaces:
ConfigProvider, GeneratedConfigBeanBuilder, GeneratedConfigBeanCommon, GeneratedConfigBeanMappers

public abstract class GeneratedConfigBeanBuilderBase extends Object implements GeneratedConfigBeanBuilder
Minimal implementation for the GeneratedConfigBeanBuilder.
  • Constructor Details

    • GeneratedConfigBeanBuilderBase

      @Deprecated protected GeneratedConfigBeanBuilderBase()
      Deprecated.
      not intended to be created directly
      Constructor.
  • Method Details

    • acceptConfig

      public void acceptConfig(Config cfg, boolean resolveAndValidate)
      Description copied from interface: GeneratedConfigBeanBuilder
      Copy values from the config, optionally applying the default resolver and validator.
      Specified by:
      acceptConfig in interface GeneratedConfigBeanBuilder
      Parameters:
      cfg - the config to initialize the builder values
      resolveAndValidate - if called will resolve and validate
      See Also:
    • __config

      public Optional<Config> __config()
      Description copied from interface: ConfigProvider
      Optionally provides a configuration instance.
      Specified by:
      __config in interface ConfigProvider
      Returns:
      the optional configuration
    • __config

      public void __config(Config cfg)
      Sets the config instance.
      Parameters:
      cfg - the config instance
    • createResolutionContext

      protected ResolutionContext createResolutionContext(Class<?> configBeanType, Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator, Map<Class<?>,Function<Config,?>> mappers)
      Creates a resolution context.
      Parameters:
      configBeanType - the config bean type
      cfg - the config
      resolver - the resolver
      validator - the config bean builder validator
      mappers - the known config bean mappers related to this config bean context
      Returns:
      the resolution context
    • finishedResolution

      protected void finishedResolution(ResolutionContext ctx)
      Called when finished the resolution process.
      Parameters:
      ctx - the resolution context