Interface GeneratedConfigBeanBuilder

All Superinterfaces:
ConfigProvider, GeneratedConfigBeanCommon, GeneratedConfigBeanMappers
All Known Implementing Classes:
GeneratedConfigBeanBuilderBase

public interface GeneratedConfigBeanBuilder extends GeneratedConfigBeanCommon, GeneratedConfigBeanMappers
Every ConfigBean-annotated *builder* type will implement this contract.
  • Method Details

    • acceptConfig

      void acceptConfig(Config cfg, boolean resolveAndValidate)
      Copy values from the config, optionally applying the default resolver and validator.
      Parameters:
      cfg - the config to initialize the builder values
      resolveAndValidate - if called will resolve and validate
      Throws:
      IllegalStateException - if there are any resolution or validation errors
      See Also:
    • acceptConfig

      void acceptConfig(Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator)
      Copy values from an existing builder.
      Parameters:
      cfg - the config to initialize the builder values
      resolver - the resolver
      validator - the validator
      Throws:
      IllegalStateException - if there are any resolution or validation errors