Class AbstractActivationRequest.Builder<B extends AbstractActivationRequest.Builder<B,T>,T extends ActivationRequest>

java.lang.Object
io.helidon.pico.api.AbstractActivationRequest.Builder<B,T>
Type Parameters:
B - the type of the builder
T - the type of the built instance
All Implemented Interfaces:
Builder<B,T>, ActivationRequest, Supplier<T>
Direct Known Subclasses:
DefaultActivationRequest.Builder
Enclosing class:
AbstractActivationRequest

public abstract static class AbstractActivationRequest.Builder<B extends AbstractActivationRequest.Builder<B,T>,T extends ActivationRequest> extends Object implements ActivationRequest, Builder<B,T>
Fluent API builder for T.
  • Constructor Details

    • Builder

      protected Builder()
      Fluent API builder constructor.
  • Method Details

    • injectionPoint

      public Optional<InjectionPointInfo> injectionPoint()
      Description copied from interface: ActivationRequest
      Optionally, the injection point context information.
      Specified by:
      injectionPoint in interface ActivationRequest
      Returns:
      injection point info
    • startingPhase

      public Optional<Phase> startingPhase()
      Description copied from interface: ActivationRequest
      The phase to start activation. Typically, this should be left as the default (i.e., PENDING).
      Specified by:
      startingPhase in interface ActivationRequest
      Returns:
      phase to start
    • targetPhase

      public Phase targetPhase()
      Description copied from interface: ActivationRequest
      Ultimate target phase for activation.
      Specified by:
      targetPhase in interface ActivationRequest
      Returns:
      phase to target
    • throwIfError

      public boolean throwIfError()
      Description copied from interface: ActivationRequest
      Whether to throw an exception on failure to activate, or return an error activation result on activation.
      Specified by:
      throwIfError in interface ActivationRequest
      Returns:
      whether to throw on failure
    • injectionPoint

      public B injectionPoint(Optional<InjectionPointInfo> val)
      Setter for 'injectionPoint'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • injectionPoint

      public B injectionPoint(InjectionPointInfo val)
      Setter for 'injectionPoint'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • startingPhase

      public B startingPhase(Optional<Phase> val)
      Setter for 'startingPhase'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • startingPhase

      public B startingPhase(Phase val)
      Setter for 'startingPhase'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • targetPhase

      public B targetPhase(Phase val)
      Setter for 'targetPhase'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • throwIfError

      public B throwIfError(boolean val)
      Setter for 'throwIfError'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • accept

      public B accept(T val)
      Accept and update from the provided value object.
      Parameters:
      val - the value object to copy from
      Returns:
      this instance typed to correct type
    • visitAttributes

      public <T> void visitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx)
      Visits all attributes of io.helidon.pico.api.ActivationRequest, calling the AttributeVisitor for each.
      Type Parameters:
      T - type of the user defined context
      Parameters:
      visitor - the visitor called for each attribute
      userDefinedCtx - any object you wish to pass to each visit call