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 all annotations.Clear existing value of description.Clear all exports.Clear all inheritedAnnotations.Clear all opens.Clear existing value of originatingElement.Clear all provides.Clear all requires.Clear all uses.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 description.- 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:
-
clearRequires
Clear all requires.- 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- add single requires- Returns:
- updated builder instance
- See Also:
-
addRequire
List of requires directives.- Parameters:
consumer- consumer of builder for requires- Returns:
- updated builder instance
- See Also:
-
clearExports
Clear all exports.- 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- add single exports- Returns:
- updated builder instance
- See Also:
-
addExport
List of exports directives.- Parameters:
consumer- consumer of builder for exports- Returns:
- updated builder instance
- See Also:
-
clearOpens
Clear all opens.- 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- add single opens- Returns:
- updated builder instance
- See Also:
-
addOpen
List of opens directives.- Parameters:
consumer- consumer of builder for opens- Returns:
- updated builder instance
- See Also:
-
clearUses
Clear all uses.- 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- add single uses- Returns:
- updated builder instance
- See Also:
-
addUse
List of uses directives.- Parameters:
consumer- consumer of builder for uses- Returns:
- updated builder instance
- See Also:
-
clearProvides
Clear all provides.- 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- add single provides- Returns:
- updated builder instance
- See Also:
-
addProvide
List of provides directives.- Parameters:
consumer- consumer of builder for provides- Returns:
- updated builder instance
- See Also:
-
clearOriginatingElement
Clear existing value of originatingElement.- 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:
-
clearAnnotations
Clear all annotations.- 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- add single 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- consumer of builder for the list of annotations declared on this element- Returns:
- updated builder instance
- See Also:
-
clearInheritedAnnotations
Clear all inheritedAnnotations.- 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- add single 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- consumer of builder for list of all meta annotations of this element- Returns:
- updated builder instance
- See Also:
-
name
Module name.- Returns:
- name of this module
-
description
Description, such as javadoc, if available.- Returns:
- description of this element
-
isOpen
public boolean isOpen()Whether this is an open module.- Returns:
- if open
-
requires
List of requires directives.- Returns:
- requires
-
exports
List of exports directives.- Returns:
- exports
-
opens
List of opens directives.- Returns:
- opens
-
uses
List of uses directives.- Returns:
- uses
-
provides
List of provides directives.- Returns:
- 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:
- 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 list of annotations declared on this element
-
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:
- list of all meta annotations of this element
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-