Module io.helidon.service.codegen
Package io.helidon.service.codegen
Class DefaultsParams.BuilderBase<BUILDER extends DefaultsParams.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends DefaultsParams>
java.lang.Object
io.helidon.service.codegen.DefaultsParams.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
DefaultsParams.Builder
- Enclosing interface:
DefaultsParams
public abstract static class DefaultsParams.BuilderBase<BUILDER extends DefaultsParams.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends DefaultsParams>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
DefaultsParams
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier 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 aMappers
instance.mappersField
(String mappersField) Name of the field/variable that contains aMappers
instance.name()
Name as sent to default value provider.Name as sent to default value provider.protected void
Handles providers and decorators.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
mapperQualifier
Qualifier used when mapping string values to target type.- Parameters:
mapperQualifier
- mapper qualifier- Returns:
- updated builder instance
- See Also:
-
mappersField
Name of the field/variable that contains aMappers
instance.- Parameters:
mappersField
- mappers field name- Returns:
- updated builder instance
- See Also:
-
name
Name as sent to default value provider.- Parameters:
name
- name to use with provider- Returns:
- updated builder instance
- See Also:
-
clearContextField
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
contextField
Name of the field/variable of the context to be sent to default value provider.- Parameters:
contextField
- context name- Returns:
- updated builder instance
- See Also:
-
mapperQualifier
Qualifier used when mapping string values to target type.- Returns:
- the mapper qualifier
-
mappersField
Name of the field/variable that contains aMappers
instance.- Returns:
- the mappers field
-
name
Name as sent to default value provider.- Returns:
- the name
-
contextField
Name of the field/variable of the context to be sent to default value provider.- Returns:
- the context field
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-