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

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

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

    • BuilderBase

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

    • from

      public BUILDER from(ActivationLogEntry 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(ActivationLogEntry.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
    • event

      public BUILDER event(Event event)
      The event.
      Parameters:
      event - the event
      Returns:
      updated builder instance
      See Also:
    • clearMessage

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

      public BUILDER message(String message)
      Optionally, any special message being logged.
      Parameters:
      message - the message
      Returns:
      updated builder instance
      See Also:
    • clearActivationResult

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

      public BUILDER activationResult(ActivationResult activationResult)
      Optionally, when this log entry pertains to a service provider activation.
      Parameters:
      activationResult - the activation result
      Returns:
      updated builder instance
      See Also:
    • activationResult

      public BUILDER activationResult(Consumer<ActivationResult.Builder> consumer)
      Optionally, when this log entry pertains to a service provider activation.
      Parameters:
      consumer - the activation result
      Returns:
      updated builder instance
      See Also:
    • clearServiceProvider

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

      public BUILDER serviceProvider(ServiceProvider<?> serviceProvider)
      Optionally, the managing service provider the event pertains to.
      Parameters:
      serviceProvider - the managing service provider
      Returns:
      updated builder instance
      See Also:
    • clearInjectionPoint

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

      public BUILDER injectionPoint(InjectionPointInfo injectionPoint)
      Optionally, the injection point that the event pertains to.
      Parameters:
      injectionPoint - the injection point
      Returns:
      updated builder instance
      See Also:
    • injectionPoint

      public BUILDER injectionPoint(Consumer<InjectionPointInfo.Builder> consumer)
      Optionally, the injection point that the event pertains to.
      Parameters:
      consumer - the injection point
      Returns:
      updated builder instance
      See Also:
    • time

      public BUILDER time(Instant time)
      The time this event was generated.
      Parameters:
      time - the time of the event
      Returns:
      updated builder instance
      See Also:
    • clearError

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

      public BUILDER error(Throwable error)
      Any observed error during activation.
      Parameters:
      error - any observed error
      Returns:
      updated builder instance
      See Also:
    • threadId

      public BUILDER threadId(long threadId)
      The thread id that the event occurred on.
      Parameters:
      threadId - the thread id
      Returns:
      updated builder instance
      See Also:
    • event

      public Optional<Event> event()
      The event.
      Returns:
      the event
    • message

      public Optional<String> message()
      Optionally, any special message being logged.
      Returns:
      the message
    • activationResult

      public Optional<ActivationResult> activationResult()
      Optionally, when this log entry pertains to a service provider activation.
      Returns:
      the activation result
    • serviceProvider

      public Optional<ServiceProvider<?>> serviceProvider()
      Optionally, the managing service provider the event pertains to.
      Returns:
      the service provider
    • injectionPoint

      public Optional<InjectionPointInfo> injectionPoint()
      Optionally, the injection point that the event pertains to.
      Returns:
      the injection point
    • time

      public Optional<Instant> time()
      The time this event was generated.
      Returns:
      the time
    • error

      public Optional<Throwable> error()
      Any observed error during activation.
      Returns:
      the error
    • threadId

      public long threadId()
      The thread id that the event occurred on.
      Returns:
      the thread id
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.