Module io.helidon.builder.config
Package io.helidon.builder.config.spi
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 Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated.not intended to be created directly -
Method Summary
Modifier and TypeMethodDescription__config()Optionally provides a configuration instance.voidSets the config instance.voidacceptConfig(Config cfg, boolean resolveAndValidate) Copy values from the config, optionally applying the default resolver and validator.protected ResolutionContextcreateResolutionContext(Class<?> configBeanType, Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator, Map<Class<?>, Function<Config, ?>> mappers) Creates a resolution context.protected voidCalled when finished the resolution process.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.builder.config.spi.GeneratedConfigBeanBuilder
acceptConfigMethods inherited from interface io.helidon.builder.config.spi.GeneratedConfigBeanCommon
__configBeanType, visitAttributesMethods inherited from interface io.helidon.builder.config.spi.GeneratedConfigBeanMappers
__mapper, __mappers
-
Constructor Details
-
GeneratedConfigBeanBuilderBase
Deprecated.not intended to be created directlyConstructor.
-
-
Method Details
-
acceptConfig
Description copied from interface:GeneratedConfigBeanBuilderCopy values from the config, optionally applying the default resolver and validator.- Specified by:
acceptConfigin interfaceGeneratedConfigBeanBuilder- Parameters:
cfg- the config to initialize the builder valuesresolveAndValidate- if called will resolve and validate- See Also:
-
__config
Description copied from interface:ConfigProviderOptionally provides a configuration instance.- Specified by:
__configin interfaceConfigProvider- Returns:
- the optional configuration
-
__config
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 typecfg- the configresolver- the resolvervalidator- the config bean builder validatormappers- the known config bean mappers related to this config bean context- Returns:
- the resolution context
-
finishedResolution
Called when finished the resolution process.- Parameters:
ctx- the resolution context
-