Module io.helidon.builder.codegen
Package io.helidon.builder.codegen
Class PrototypeConfigured.BuilderBase<BUILDER extends PrototypeConfigured.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PrototypeConfigured>
java.lang.Object
io.helidon.builder.codegen.PrototypeConfigured.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:
PrototypeConfigured.Builder
- Enclosing interface:
PrototypeConfigured
public abstract static class PrototypeConfigured.BuilderBase<BUILDER extends PrototypeConfigured.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PrototypeConfigured>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
PrototypeConfigured.-
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 TypeMethodDescriptionclearKey()Clear existing value of key.Access modifier.createAccessModifier(AccessModifier createAccessModifier) Access modifier.from(PrototypeConfigured prototype) Update this builder from an existing prototype instance.from(PrototypeConfigured.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.key()Key of this prototype's configuration.Key of this prototype's configuration.protected voidHandles providers and decorators.booleanroot()Whether the configuration is expected from the root of config tree.root(boolean root) Whether the configuration is expected from the root of config tree.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
-
createAccessModifier
Access modifier.- Parameters:
createAccessModifier- access modifier of the methodcreate(Config), defaults topublic- Returns:
- updated builder instance
- See Also:
-
root
Whether the configuration is expected from the root of config tree. Defaults totruein case akey()is defined.- Parameters:
root- whether this prototype uses root configuration key- Returns:
- updated builder instance
- See Also:
-
clearKey
Clear existing value of key.- Returns:
- updated builder instance
- See Also:
-
key
Key of this prototype's configuration.- Parameters:
key- key if configured- Returns:
- updated builder instance
- See Also:
-
createAccessModifier
Access modifier.- Returns:
- access modifier of the method
create(Config), defaults topublic
-
root
public boolean root()Whether the configuration is expected from the root of config tree. Defaults totruein case akey()is defined.- Returns:
- whether this prototype uses root configuration key
-
key
Key of this prototype's configuration.- Returns:
- key if configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-