Class ModuleInfoProvides.BuilderBase<BUILDER extends ModuleInfoProvides.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ModuleInfoProvides>
java.lang.Object
io.helidon.common.types.ModuleInfoProvides.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:
ModuleInfoProvides.Builder
- Enclosing interface:
ModuleInfoProvides
public abstract static class ModuleInfoProvides.BuilderBase<BUILDER extends ModuleInfoProvides.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ModuleInfoProvides>
extends Object
implements Prototype.Builder<BUILDER, PROTOTYPE>
Fluent API builder base for
ModuleInfoProvides.-
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 TypeMethodDescriptionaddImplementation(TypeName implementation) List of implementations of the service.addImplementation(Consumer<TypeName.Builder> consumer) List of implementations of the service.addImplementations(List<? extends TypeName> implementations) List of implementations of the service.Clear all implementations.from(ModuleInfoProvides prototype) Update this builder from an existing prototype instance.from(ModuleInfoProvides.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.List of implementations of the service.implementations(List<? extends TypeName> implementations) List of implementations of the service.protected voidHandles providers and decorators.service()Type of the service provided.Type of the service provided.service(Consumer<TypeName.Builder> consumer) Type of the service provided.Type of the service provided.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
service
-
service
Type of the service provided.- Parameters:
consumer- consumer of builder of service type- Returns:
- updated builder instance
- See Also:
-
service
-
clearImplementations
Clear all implementations.- Returns:
- updated builder instance
- See Also:
-
implementations
-
addImplementations
-
addImplementation
-
addImplementation
List of implementations of the service.- Parameters:
consumer- consumer of builder for implementation types- Returns:
- updated builder instance
- See Also:
-
service
-
implementations
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-