Class DefaultsParams.Builder
java.lang.Object
io.helidon.service.codegen.DefaultsParams.BuilderBase<DefaultsParams.Builder, DefaultsParams>
io.helidon.service.codegen.DefaultsParams.Builder
- All Implemented Interfaces:
Prototype.Builder<DefaultsParams.Builder, DefaultsParams>, Builder<DefaultsParams.Builder, DefaultsParams>, Supplier<DefaultsParams>
- Enclosing interface:
DefaultsParams
public static class DefaultsParams.Builder
extends DefaultsParams.BuilderBase<DefaultsParams.Builder, DefaultsParams>
implements Builder<DefaultsParams.Builder, DefaultsParams>
Fluent API builder for
DefaultsParams.-
Nested Class Summary
Nested classes/interfaces inherited from class DefaultsParams.BuilderBase
DefaultsParams.BuilderBase.DefaultsParamsImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class DefaultsParams.BuilderBase
clearContextField, contextField, contextField, from, mapperQualifier, mapperQualifier, mappersField, mappersField, name, name, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of this property.Name of the field/variable of the context to be sent to default value provider.contextField(String contextField) Name of the field/variable of the context to be sent to default value provider.from(DefaultsParams prototype) Update this builder from an existing prototype instance.Qualifier used when mapping string values to target type.mapperQualifier(String mapperQualifier) Qualifier used when mapping string values to target type.Name of the field/variable that contains aMappersinstance.mappersField(String mappersField) Name of the field/variable that contains aMappersinstance.name()Name as sent to default value provider.Name as sent to default value provider.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault DefaultsParamsget()default DefaultsParams.Builderidentity()Instance of this builder as the correct type.default DefaultsParams.Builderupdate(Consumer<DefaultsParams.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault DefaultsParams.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Description copied from interface:Prototype.BuilderCreate an instance of thePrototype. This method is available on all generated builders forPrototype.Blueprint.Calling this method may update the builder from providers and decorators, so repeated calls may have side effects such as repeated provider discovery.
- Specified by:
buildPrototypein interfacePrototype.Builder<DefaultsParams.Builder, DefaultsParams>- Returns:
- an instance of the setup object created from this builder
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<DefaultsParams.Builder, DefaultsParams>- Returns:
- instance of the built type
-