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

java.lang.Object
io.helidon.common.types.ModuleInfoExports.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:
ModuleInfoExports.Builder
Enclosing interface:
ModuleInfoExports

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

    • BuilderBase

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

    • from

      public BUILDER from(ModuleInfoExports 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(ModuleInfoExports.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 exported package.
      Parameters:
      packageName - package name
      Returns:
      updated builder instance
      See Also:
    • targets

      public BUILDER targets(List<String> targets)
      Names of target modules, empty if exported 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 exported 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 exported without qualification.
      Parameters:
      target - list of target modules
      Returns:
      updated builder instance
      See Also:
    • packageName

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

      public List<String> targets()
      Names of target modules, empty if exported 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.