Interface CallingContext

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
CallingContext.BuilderBase.CallingContextImpl

public interface CallingContext extends Prototype.Api
For internal use only to Helidon. Applicable when InjectionServices.TAG_DEBUG is enabled.
See Also:
  • Method Details

    • builder

      static CallingContext.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static CallingContext.Builder builder(CallingContext instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static CallingContext create()
      Create a new instance with default values.
      Returns:
      a new instance
    • stackTrace

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

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

      String threadName()
      The thread that created the calling context.
      Returns:
      thread creating the calling context
    • stackTraceAsList

      default List<String> stackTraceAsList()
      Returns a stack trace as a list of strings.
      Returns:
      the list of strings for the stack trace, or empty list if not available