Class AbstractActivationLogEntry.Builder<B extends AbstractActivationLogEntry.Builder<B,T>,T extends ActivationLogEntry>

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

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

    • Builder

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

    • event

      public Event event()
      Description copied from interface: ActivationLogEntry
      The event.
      Specified by:
      event in interface ActivationLogEntry
      Returns:
      the event
    • message

      public Optional<String> message()
      Description copied from interface: ActivationLogEntry
      Optionally, any special message being logged.
      Specified by:
      message in interface ActivationLogEntry
      Returns:
      the message
    • activationResult

      public Optional<ActivationResult> activationResult()
      Description copied from interface: ActivationLogEntry
      Optionally, when this log entry pertains to a service provider activation.
      Specified by:
      activationResult in interface ActivationLogEntry
      Returns:
      the activation result
    • serviceProvider

      public Optional<ServiceProvider<?>> serviceProvider()
      Description copied from interface: ActivationLogEntry
      Optionally, the managing service provider the event pertains to.
      Specified by:
      serviceProvider in interface ActivationLogEntry
      Returns:
      the managing service provider
    • injectionPoint

      public Optional<InjectionPointInfo> injectionPoint()
      Description copied from interface: ActivationLogEntry
      Optionally, the injection point that the event pertains to.
      Specified by:
      injectionPoint in interface ActivationLogEntry
      Returns:
      the injection point
    • time

      public Instant time()
      Description copied from interface: ActivationLogEntry
      The time this event was generated.
      Specified by:
      time in interface ActivationLogEntry
      Returns:
      the time of the event
    • error

      public Optional<Throwable> error()
      Description copied from interface: ActivationLogEntry
      Any observed error during activation.
      Specified by:
      error in interface ActivationLogEntry
      Returns:
      any observed error
    • threadId

      public long threadId()
      Description copied from interface: ActivationLogEntry
      The thread id that the event occurred on.
      Specified by:
      threadId in interface ActivationLogEntry
      Returns:
      the thread id
    • event

      public B event(Event val)
      Setter for 'event'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • message

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

      public B message(String val)
      Setter for 'message'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • activationResult

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

      public B activationResult(ActivationResult val)
      Setter for 'activationResult'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • serviceProvider

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

      public B serviceProvider(ServiceProvider<?> val)
      Setter for 'serviceProvider'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • 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
    • time

      public B time(Instant val)
      Setter for 'time'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • error

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

      public B error(Throwable val)
      Setter for 'error'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • threadId

      public B threadId(long val)
      Setter for 'threadId'.
      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.ActivationLogEntry, 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