Module io.helidon.builder.codegen
Package io.helidon.builder.codegen
Class RuntimeTypeInfo.BuilderBase<BUILDER extends RuntimeTypeInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends RuntimeTypeInfo>
java.lang.Object
io.helidon.builder.codegen.RuntimeTypeInfo.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:
RuntimeTypeInfo.Builder
- Enclosing interface:
RuntimeTypeInfo
public abstract static class RuntimeTypeInfo.BuilderBase<BUILDER extends RuntimeTypeInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends RuntimeTypeInfo>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
RuntimeTypeInfo.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of factoryMethod.Factory method.factoryMethod(FactoryMethod factoryMethod) Factory method.factoryMethod(Consumer<FactoryMethod.Builder> consumer) Factory method.factoryMethod(Supplier<? extends FactoryMethod> supplier) Factory method.from(RuntimeTypeInfo prototype) Update this builder from an existing prototype instance.from(RuntimeTypeInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Builder information associated with this factory method.optionBuilder(OptionBuilder optionBuilder) Builder information associated with this factory method.optionBuilder(Consumer<OptionBuilder.Builder> consumer) Builder information associated with this factory method.optionBuilder(Supplier<? extends OptionBuilder> supplier) Builder information associated with this factory method.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
clearFactoryMethod
Clear existing value of factoryMethod.- Returns:
- updated builder instance
- See Also:
-
factoryMethod
Factory method. If not defined, we expect the builder to build the correct type.- Parameters:
factoryMethod- the factory method if present- Returns:
- updated builder instance
- See Also:
-
factoryMethod
Factory method. If not defined, we expect the builder to build the correct type.- Parameters:
consumer- consumer of builder of the factory method if present- Returns:
- updated builder instance
- See Also:
-
factoryMethod
Factory method. If not defined, we expect the builder to build the correct type.- Parameters:
supplier- supplier of the factory method if present- Returns:
- updated builder instance
- See Also:
-
optionBuilder
Builder information associated with this factory method.- Parameters:
optionBuilder- builder information- Returns:
- updated builder instance
- See Also:
-
optionBuilder
Builder information associated with this factory method.- Parameters:
consumer- consumer of builder of builder information- Returns:
- updated builder instance
- See Also:
-
optionBuilder
Builder information associated with this factory method.- Parameters:
supplier- supplier of builder information- Returns:
- updated builder instance
- See Also:
-
factoryMethod
Factory method. If not defined, we expect the builder to build the correct type.- Returns:
- the factory method if present
-
optionBuilder
Builder information associated with this factory method.- Returns:
- builder information
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-