Module io.helidon.builder.config
Package io.helidon.builder.config.spi
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 Summary
Modifier and TypeMethodDescriptionvoidacceptConfig(Config cfg, boolean resolveAndValidate) Copy values from the config, optionally applying the default resolver and validator.voidacceptConfig(Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator) Copy values from an existing builder.Methods inherited from interface io.helidon.builder.config.spi.ConfigProvider
__configMethods inherited from interface io.helidon.builder.config.spi.GeneratedConfigBeanCommon
__configBeanType, visitAttributesMethods inherited from interface io.helidon.builder.config.spi.GeneratedConfigBeanMappers
__mapper, __mappers
-
Method Details
-
acceptConfig
Copy values from the config, optionally applying the default resolver and validator.- Parameters:
cfg- the config to initialize the builder valuesresolveAndValidate- if called will resolve and validate- Throws:
IllegalStateException- if there are any resolution or validation errors- See Also:
-
acceptConfig
Copy values from an existing builder.- Parameters:
cfg- the config to initialize the builder valuesresolver- the resolvervalidator- the validator- Throws:
IllegalStateException- if there are any resolution or validation errors
-