Class AbstractCallingContext

java.lang.Object
io.helidon.pico.api.CallingContext
io.helidon.pico.api.AbstractCallingContext
Direct Known Subclasses:
DefaultCallingContext

@Generated(value="io.helidon.builder.processor.tools.DefaultBuilderCreatorProvider", comments="version=1") public abstract class AbstractCallingContext extends CallingContext
Abstract implementation w/ builder for CallingContext.
  • Constructor Details

    • AbstractCallingContext

      protected AbstractCallingContext(AbstractCallingContext.Builder<?,?> b)
      Constructor using the builder argument.
      Parameters:
      b - the builder
  • Method Details

    • trace

      public StackTraceElement[] trace()
      Description copied from class: CallingContext
      Only populated when PicoServicesConfig.TAG_DEBUG is set.
      Specified by:
      trace in class CallingContext
      Returns:
      the stack trace for who initialized
    • moduleName

      public Optional<String> moduleName()
      Description copied from class: CallingContext
      Only populated when PicoServicesConfig.TAG_MODULE_NAME is set.
      Specified by:
      moduleName in class CallingContext
      Returns:
      the module name
    • threadName

      public String threadName()
      Description copied from class: CallingContext
      The thread that created the calling context.
      Specified by:
      threadName in class CallingContext
      Returns:
      thread creating the calling context
    • __metaAttributes

      public static Map<String,Map<String,Object>> __metaAttributes()
      The map of meta attributes describing each element of this type.
      Returns:
      the map of meta attributes using the key being the attribute name
    • toStringInner

      protected String toStringInner()
      Produces the inner portion of the toString() output (i.e., what is between the parens).
      Returns:
      portion of the toString output
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • visitAttributes

      public <T> void visitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx)
      Visits all attributes of io.helidon.pico.api.CallingContext, 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