Class ModuleTypeInfo.BuilderBase<BUILDER extends ModuleTypeInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ModuleTypeInfo>
- 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:
ModuleTypeInfo.Builder
- Enclosing interface:
ModuleTypeInfo
ModuleTypeInfo.-
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 TypeMethodDescriptionaddAnnotation(Annotation annotation) List of declared and known annotations for this element.addAnnotation(Consumer<Annotation.Builder> consumer) List of declared and known annotations for this element.addAnnotations(List<? extends Annotation> annotations) List of declared and known annotations for this element.addExport(ModuleInfoExports export) List of exports directives.addExport(Consumer<ModuleInfoExports.Builder> consumer) List of exports directives.addExports(List<? extends ModuleInfoExports> exports) List of exports directives.addInheritedAnnotation(Annotation inheritedAnnotation) List of all inherited annotations for this element.addInheritedAnnotation(Consumer<Annotation.Builder> consumer) List of all inherited annotations for this element.addInheritedAnnotations(List<? extends Annotation> inheritedAnnotations) List of all inherited annotations for this element.addOpen(ModuleInfoOpens open) List of opens directives.addOpen(Consumer<ModuleInfoOpens.Builder> consumer) List of opens directives.addOpens(List<? extends ModuleInfoOpens> opens) List of opens directives.addProvide(ModuleInfoProvides provide) List of provides directives.addProvide(Consumer<ModuleInfoProvides.Builder> consumer) List of provides directives.addProvides(List<? extends ModuleInfoProvides> provides) List of provides directives.addRequire(ModuleInfoRequires require) List of requires directives.addRequire(Consumer<ModuleInfoRequires.Builder> consumer) List of requires directives.addRequires(List<? extends ModuleInfoRequires> requires) List of requires directives.addUse(ModuleInfoUses use) List of uses directives.addUse(Consumer<ModuleInfoUses.Builder> consumer) List of uses directives.addUses(List<? extends ModuleInfoUses> uses) List of uses directives.List of declared and known annotations for this element.annotations(List<? extends Annotation> annotations) List of declared and known annotations for this element.Clear existing value of this property.Clear existing value of this property.Description, such as javadoc, if available.description(String description) Description, such as javadoc, if available.exports()List of exports directives.exports(List<? extends ModuleInfoExports> exports) List of exports directives.from(ModuleTypeInfo prototype) Update this builder from an existing prototype instance.from(ModuleTypeInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.List of all inherited annotations for this element.inheritedAnnotations(List<? extends Annotation> inheritedAnnotations) List of all inherited annotations for this element.booleanisOpen()Whether this is an open module.isOpen(boolean isOpen) Whether this is an open module.name()Module name.Module name.opens()List of opens directives.opens(List<? extends ModuleInfoOpens> opens) List of opens directives.The element used to create this instance.originatingElement(Object originatingElement) The element used to create this instance.protected voidHandles providers and decorators.provides()List of provides directives.provides(List<? extends ModuleInfoProvides> provides) List of provides directives.requires()List of requires directives.requires(List<? extends ModuleInfoRequires> requires) List of requires directives.toString()uses()List of uses directives.uses(List<? extends ModuleInfoUses> uses) List of uses directives.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
-
name
Module name.- Parameters:
name- name of this module- Returns:
- updated builder instance
- See Also:
-
clearDescription
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
description
Description, such as javadoc, if available.- Parameters:
description- description of this element- Returns:
- updated builder instance
- See Also:
-
isOpen
Whether this is an open module.- Parameters:
isOpen- if open- Returns:
- updated builder instance
- See Also:
-
requires
List of requires directives.- Parameters:
requires- requires- Returns:
- updated builder instance
- See Also:
-
addRequires
List of requires directives.- Parameters:
requires- requires- Returns:
- updated builder instance
- See Also:
-
addRequire
List of requires directives.- Parameters:
require- requires- Returns:
- updated builder instance
- See Also:
-
addRequire
List of requires directives.- Parameters:
consumer- requires- Returns:
- updated builder instance
- See Also:
-
exports
List of exports directives.- Parameters:
exports- exports- Returns:
- updated builder instance
- See Also:
-
addExports
List of exports directives.- Parameters:
exports- exports- Returns:
- updated builder instance
- See Also:
-
addExport
List of exports directives.- Parameters:
export- exports- Returns:
- updated builder instance
- See Also:
-
addExport
List of exports directives.- Parameters:
consumer- exports- Returns:
- updated builder instance
- See Also:
-
opens
List of opens directives.- Parameters:
opens- opens- Returns:
- updated builder instance
- See Also:
-
addOpens
List of opens directives.- Parameters:
opens- opens- Returns:
- updated builder instance
- See Also:
-
addOpen
List of opens directives.- Parameters:
open- opens- Returns:
- updated builder instance
- See Also:
-
addOpen
List of opens directives.- Parameters:
consumer- opens- Returns:
- updated builder instance
- See Also:
-
uses
List of uses directives.- Parameters:
uses- uses- Returns:
- updated builder instance
- See Also:
-
addUses
List of uses directives.- Parameters:
uses- uses- Returns:
- updated builder instance
- See Also:
-
addUse
List of uses directives.- Parameters:
use- uses- Returns:
- updated builder instance
- See Also:
-
addUse
List of uses directives.- Parameters:
consumer- uses- Returns:
- updated builder instance
- See Also:
-
provides
List of provides directives.- Parameters:
provides- provides- Returns:
- updated builder instance
- See Also:
-
addProvides
List of provides directives.- Parameters:
provides- provides- Returns:
- updated builder instance
- See Also:
-
addProvide
List of provides directives.- Parameters:
provide- provides- Returns:
- updated builder instance
- See Also:
-
addProvide
List of provides directives.- Parameters:
consumer- provides- Returns:
- updated builder instance
- See Also:
-
clearOriginatingElement
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
originatingElement
The element used to create this instance. The type of the object depends on the environment we are in - it may be anTypeElementin annotation processing, or aClassInfowhen using classpath scanning.- Parameters:
originatingElement- originating element- Returns:
- updated builder instance
- See Also:
-
annotations
List of declared and known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build (such as theof the annotation).- Parameters:
annotations- the list of annotations declared on this element- Returns:
- updated builder instance
- See Also:
-
addAnnotations
List of declared and known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build (such as theof the annotation).- Parameters:
annotations- the list of annotations declared on this element- Returns:
- updated builder instance
- See Also:
-
addAnnotation
List of declared and known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build (such as theof the annotation).- Parameters:
annotation- the list of annotations declared on this element- Returns:
- updated builder instance
- See Also:
-
addAnnotation
List of declared and known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build (such as theof the annotation).- Parameters:
consumer- the list of annotations declared on this element- Returns:
- updated builder instance
- See Also:
-
inheritedAnnotations
List of all inherited annotations for this element. Inherited annotations are annotations declared on annotations of this element that are also marked asInherited.The returned list does not contain
annotations(). If a meta-annotation is present on multiple annotations, it will be returned once for each such declaration.This method does not return annotations on super types or interfaces!
- Parameters:
inheritedAnnotations- list of all meta annotations of this element- Returns:
- updated builder instance
- See Also:
-
addInheritedAnnotations
List of all inherited annotations for this element. Inherited annotations are annotations declared on annotations of this element that are also marked asInherited.The returned list does not contain
annotations(). If a meta-annotation is present on multiple annotations, it will be returned once for each such declaration.This method does not return annotations on super types or interfaces!
- Parameters:
inheritedAnnotations- list of all meta annotations of this element- Returns:
- updated builder instance
- See Also:
-
addInheritedAnnotation
List of all inherited annotations for this element. Inherited annotations are annotations declared on annotations of this element that are also marked asInherited.The returned list does not contain
annotations(). If a meta-annotation is present on multiple annotations, it will be returned once for each such declaration.This method does not return annotations on super types or interfaces!
- Parameters:
inheritedAnnotation- list of all meta annotations of this element- Returns:
- updated builder instance
- See Also:
-
addInheritedAnnotation
List of all inherited annotations for this element. Inherited annotations are annotations declared on annotations of this element that are also marked asInherited.The returned list does not contain
annotations(). If a meta-annotation is present on multiple annotations, it will be returned once for each such declaration.This method does not return annotations on super types or interfaces!
- Parameters:
consumer- list of all meta annotations of this element- Returns:
- updated builder instance
- See Also:
-
name
Module name.- Returns:
- the name
-
description
Description, such as javadoc, if available.- Returns:
- the description
-
isOpen
public boolean isOpen()Whether this is an open module.- Returns:
- the is open
-
requires
List of requires directives.- Returns:
- the requires
-
exports
List of exports directives.- Returns:
- the exports
-
opens
List of opens directives.- Returns:
- the opens
-
uses
List of uses directives.- Returns:
- the uses
-
provides
List of provides directives.- Returns:
- the provides
-
originatingElement
The element used to create this instance. The type of the object depends on the environment we are in - it may be anTypeElementin annotation processing, or aClassInfowhen using classpath scanning.- Returns:
- the originating element
-
annotations
List of declared and known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build (such as theof the annotation).- Returns:
- the annotations
-
inheritedAnnotations
List of all inherited annotations for this element. Inherited annotations are annotations declared on annotations of this element that are also marked asInherited.The returned list does not contain
annotations(). If a meta-annotation is present on multiple annotations, it will be returned once for each such declaration.This method does not return annotations on super types or interfaces!
- Returns:
- the inherited annotations
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-