Class ModuleInfoOpens.BuilderBase<BUILDER extends ModuleInfoOpens.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ModuleInfoOpens>

java.lang.Object
io.helidon.common.types.ModuleInfoOpens.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
ModuleInfoOpens.Builder
Enclosing interface:
ModuleInfoOpens

public abstract static class ModuleInfoOpens.BuilderBase<BUILDER extends ModuleInfoOpens.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ModuleInfoOpens> extends Object implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for ModuleInfoOpens.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(ModuleInfoOpens prototype)
      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

      public BUILDER from(ModuleInfoOpens.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • packageName

      public BUILDER packageName(String packageName)
      Name of the opened package.
      Parameters:
      packageName - package name
      Returns:
      updated builder instance
      See Also:
    • targets

      public BUILDER targets(List<String> targets)
      Names of target modules, empty if opened without qualification.
      Parameters:
      targets - list of target modules
      Returns:
      updated builder instance
      See Also:
    • addTargets

      public BUILDER addTargets(List<String> targets)
      Names of target modules, empty if opened without qualification.
      Parameters:
      targets - list of target modules
      Returns:
      updated builder instance
      See Also:
    • addTarget

      public BUILDER addTarget(String target)
      Names of target modules, empty if opened without qualification.
      Parameters:
      target - list of target modules
      Returns:
      updated builder instance
      See Also:
    • packageName

      public Optional<String> packageName()
      Name of the opened package.
      Returns:
      the package name
    • targets

      public List<String> targets()
      Names of target modules, empty if opened without qualification.
      Returns:
      the targets
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.