Module io.helidon.builder.config
Package io.helidon.builder.config.spi
Class ResolutionContext.Builder
java.lang.Object
io.helidon.builder.config.spi.ResolutionContext.Builder
- All Implemented Interfaces:
Builder<ResolutionContext.Builder,,ResolutionContext> Supplier<ResolutionContext>
- Enclosing class:
ResolutionContext
public static class ResolutionContext.Builder
extends Object
implements Builder<ResolutionContext.Builder,ResolutionContext>
Fluent builder for
ResolutionContext.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a single mapper val.build()Build the instance.Set the config.configBeanType(Class<?> configBeanType) Set the config bean type.Sets the mappers to val.resolver(ConfigResolver val) Set the config resolver.validator(ConfigBeanBuilderValidator<?> val) Set the config bean builder validator.
-
Constructor Details
-
Builder
protected Builder()Constructor for the fluent builder.
-
-
Method Details
-
build
Build the instance.- Specified by:
buildin interfaceBuilder<ResolutionContext.Builder,ResolutionContext> - Returns:
- the built instance
-
configBeanType
Set the config bean type.- Parameters:
configBeanType- the config bean type- Returns:
- this fluent builder
-
config
Set the config.- Parameters:
val- the config- Returns:
- this fluent builder
-
resolver
Set the config resolver.- Parameters:
val- the config resolver- Returns:
- this fluent builder
-
validator
Set the config bean builder validator.- Parameters:
val- the config validator- Returns:
- this fluent builder
-
mappers
Sets the mappers to val.- Parameters:
val- the value- Returns:
- this fluent builder
-
addMapper
Adds a single mapper val.- Parameters:
key- the keyval- the value- Returns:
- this fluent builder
-