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

java.lang.Object
io.helidon.inject.api.InternalBootstrap.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:
InternalBootstrap.Builder
Enclosing interface:
InternalBootstrap

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

    • BuilderBase

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

    • from

      public BUILDER from(InternalBootstrap prototype)
      Update this builder from an existing prototype instance.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(InternalBootstrap.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
    • clearBootStrap

      public BUILDER clearBootStrap()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • bootStrap

      public BUILDER bootStrap(Bootstrap bootStrap)
      The user established bootstrap.
      Parameters:
      bootStrap - user established bootstrap
      Returns:
      updated builder instance
      See Also:
    • bootStrap

      public BUILDER bootStrap(Consumer<Bootstrap.Builder> consumer)
      The user established bootstrap.
      Parameters:
      consumer - user established bootstrap
      Returns:
      updated builder instance
      See Also:
    • clearCallingContext

      public BUILDER clearCallingContext()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • callingContext

      public BUILDER callingContext(CallingContext callingContext)
      Only populated when InjectionServices.TAG_DEBUG is set.
      Parameters:
      callingContext - the calling context
      Returns:
      updated builder instance
      See Also:
    • callingContext

      public BUILDER callingContext(Consumer<CallingContext.Builder> consumer)
      Only populated when InjectionServices.TAG_DEBUG is set.
      Parameters:
      consumer - the calling context
      Returns:
      updated builder instance
      See Also:
    • bootStrap

      public Optional<Bootstrap> bootStrap()
      The user established bootstrap.
      Returns:
      the boot strap
    • callingContext

      public Optional<CallingContext> callingContext()
      Only populated when InjectionServices.TAG_DEBUG is set.
      Returns:
      the calling context
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.