Module io.helidon.common.types
Package io.helidon.common.types
Class ModuleInfoRequires.BuilderBase<BUILDER extends ModuleInfoRequires.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ModuleInfoRequires>
java.lang.Object
io.helidon.common.types.ModuleInfoRequires.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:
ModuleInfoRequires.Builder
- Enclosing interface:
ModuleInfoRequires
public abstract static class ModuleInfoRequires.BuilderBase<BUILDER extends ModuleInfoRequires.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ModuleInfoRequires>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
ModuleInfoRequires.-
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 TypeMethodDescriptionThe module we depend on.dependency(String dependency) The module we depend on.from(ModuleInfoRequires prototype) Update this builder from an existing prototype instance.from(ModuleInfoRequires.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanisStatic()Whether this is arequires staticdeclaration.isStatic(boolean isStatic) Whether this is arequires staticdeclaration.booleanWhether this is arequires transitivedeclaration.isTransitive(boolean isTransitive) Whether this is arequires transitivedeclaration.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
-
isStatic
Whether this is arequires staticdeclaration.- Parameters:
isStatic- if requires static- Returns:
- updated builder instance
- See Also:
-
isTransitive
Whether this is arequires transitivedeclaration.- Parameters:
isTransitive- if requires transitive- Returns:
- updated builder instance
- See Also:
-
dependency
The module we depend on.- Parameters:
dependency- module name we depend on- Returns:
- updated builder instance
- See Also:
-
isStatic
public boolean isStatic()Whether this is arequires staticdeclaration.- Returns:
- the is static
-
isTransitive
public boolean isTransitive()Whether this is arequires transitivedeclaration.- Returns:
- the is transitive
-
dependency
The module we depend on.- Returns:
- the dependency
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-