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

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

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

    • BuilderBase

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

    • from

      public BUILDER from(ModuleInfoRequires 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(ModuleInfoRequires.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
    • isStatic

      public BUILDER isStatic(boolean isStatic)
      Whether this is a requires static declaration.
      Parameters:
      isStatic - if requires static
      Returns:
      updated builder instance
      See Also:
    • isTransitive

      public BUILDER isTransitive(boolean isTransitive)
      Whether this is a requires transitive declaration.
      Parameters:
      isTransitive - if requires transitive
      Returns:
      updated builder instance
      See Also:
    • dependency

      public BUILDER dependency(String dependency)
      The module we depend on.
      Parameters:
      dependency - module name we depend on
      Returns:
      updated builder instance
      See Also:
    • isStatic

      public boolean isStatic()
      Whether this is a requires static declaration.
      Returns:
      the is static
    • isTransitive

      public boolean isTransitive()
      Whether this is a requires transitive declaration.
      Returns:
      the is transitive
    • dependency

      public Optional<String> dependency()
      The module we depend on.
      Returns:
      the dependency
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.