Class ThreadBoxContext

java.lang.Object
ortus.boxlang.runtime.context.BaseBoxContext
ortus.boxlang.runtime.context.ThreadBoxContext
All Implemented Interfaces:
Serializable, IBoxContext, IJDBCCapableContext, IBoxAttachable

public class ThreadBoxContext extends BaseBoxContext implements IJDBCCapableContext
This context represents the context of any function execution in BoxLang It encapsulates the arguments scope and local scope and has a reference to the function being invoked. This context is extended for use with both UDFs and Closures as well
See Also:
  • Field Details

    • localScope

      protected IScope localScope
      The thread local scope
    • variablesScope

      protected IScope variablesScope
      The parent's variables scope
    • thisScope

      protected IScope thisScope
      The parent's this scope
    • thread

      protected Thread thread
      The Thread
    • threadName

      protected Key threadName
      The BoxLang name of the thread as registered in the thread manager.
  • Constructor Details

    • ThreadBoxContext

      public ThreadBoxContext(IBoxContext parent, RequestThreadManager threadManager, Key threadName)
      Creates a new execution context with a bounded function instance and parent context
      Parameters:
      parent - The parent context
      threadManager - The thread manager
      threadName - The name of the thread
  • Method Details