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

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

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

    • BuilderBase

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

    • from

      public BUILDER from(ModuleInfoUses 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(ModuleInfoUses.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
    • service

      public BUILDER service(TypeName service)
      Type of the service used by this module.
      Parameters:
      service - service
      Returns:
      updated builder instance
      See Also:
    • service

      public BUILDER service(Consumer<TypeName.Builder> consumer)
      Type of the service used by this module.
      Parameters:
      consumer - consumer of builder for service
      Returns:
      updated builder instance
      See Also:
    • service

      public BUILDER service(Supplier<? extends TypeName> supplier)
      Type of the service used by this module.
      Parameters:
      supplier - supplier of service
      Returns:
      updated builder instance
      See Also:
    • service

      public Optional<TypeName> service()
      Type of the service used by this module.
      Returns:
      the service
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.