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

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

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

    • BuilderBase

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

    • from

      public BUILDER from(CallingContext 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(CallingContext.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
    • clearStackTrace

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

      public BUILDER stackTrace(StackTraceElement[] stackTrace)
      Only populated when InjectionServices.TAG_DEBUG is set.
      Parameters:
      stackTrace - the stack trace for who initialized
      Returns:
      updated builder instance
      See Also:
    • clearModuleName

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

      public BUILDER moduleName(String moduleName)
      Only populated when module is set.
      Parameters:
      moduleName - the module name
      Returns:
      updated builder instance
      See Also:
    • threadName

      public BUILDER threadName(String threadName)
      The thread that created the calling context.
      Parameters:
      threadName - thread creating the calling context
      Returns:
      updated builder instance
      See Also:
    • stackTrace

      public Optional<StackTraceElement[]> stackTrace()
      Only populated when InjectionServices.TAG_DEBUG is set.
      Returns:
      the stack trace
    • moduleName

      public Optional<String> moduleName()
      Only populated when module is set.
      Returns:
      the module name
    • threadName

      public Optional<String> threadName()
      The thread that created the calling context.
      Returns:
      the thread name
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.