Class ModuleTypeInfo.Builder
java.lang.Object
io.helidon.common.types.ModuleTypeInfo.BuilderBase<ModuleTypeInfo.Builder, ModuleTypeInfo>
io.helidon.common.types.ModuleTypeInfo.Builder
- All Implemented Interfaces:
Prototype.Builder<ModuleTypeInfo.Builder, ModuleTypeInfo>, Builder<ModuleTypeInfo.Builder, ModuleTypeInfo>, Supplier<ModuleTypeInfo>
- Enclosing interface:
ModuleTypeInfo
public static class ModuleTypeInfo.Builder
extends ModuleTypeInfo.BuilderBase<ModuleTypeInfo.Builder, ModuleTypeInfo>
implements Builder<ModuleTypeInfo.Builder, ModuleTypeInfo>
Fluent API builder for
ModuleTypeInfo.-
Nested Class Summary
Nested classes/interfaces inherited from class ModuleTypeInfo.BuilderBase
ModuleTypeInfo.BuilderBase.ModuleTypeInfoImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class ModuleTypeInfo.BuilderBase
addAnnotation, addAnnotation, addAnnotations, addExport, addExport, addExports, addInheritedAnnotation, addInheritedAnnotation, addInheritedAnnotations, addOpen, addOpen, addOpens, addProvide, addProvide, addProvides, addRequire, addRequire, addRequires, addUse, addUse, addUses, annotations, annotations, clearAnnotations, clearDescription, clearExports, clearInheritedAnnotations, clearOpens, clearOriginatingElement, clearProvides, clearRequires, clearUses, description, description, exports, exports, from, from, inheritedAnnotations, inheritedAnnotations, isOpen, isOpen, name, name, opens, opens, originatingElement, originatingElement, preBuildPrototype, provides, provides, requires, requires, toString, uses, uses, validatePrototypeModifier 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ModuleTypeInfoget()default ModuleTypeInfo.Builderidentity()Instance of this builder as the correct type.default ModuleTypeInfo.Builderupdate(Consumer<ModuleTypeInfo.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ModuleTypeInfo.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Description copied from interface:Prototype.BuilderCreate an instance of thePrototype. This method is available on all generated builders forPrototype.Blueprint.Calling this method may update the builder from providers and decorators, so repeated calls may have side effects such as repeated provider discovery.
- Specified by:
buildPrototypein interfacePrototype.Builder<ModuleTypeInfo.Builder, ModuleTypeInfo>- Returns:
- an instance of the setup object created from this builder
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<ModuleTypeInfo.Builder, ModuleTypeInfo>- Returns:
- instance of the built type
-