Class ThreadSafeLocalContextProvider

java.lang.Object
org.jruby.embed.internal.AbstractLocalContextProvider
org.jruby.embed.internal.ThreadSafeLocalContextProvider
All Implemented Interfaces:
LocalContextProvider

public class ThreadSafeLocalContextProvider extends AbstractLocalContextProvider
  • Constructor Details

    • ThreadSafeLocalContextProvider

      public ThreadSafeLocalContextProvider(LocalVariableBehavior behavior)
    • ThreadSafeLocalContextProvider

      public ThreadSafeLocalContextProvider(LocalVariableBehavior behavior, boolean lazy)
  • Method Details

    • getRuntime

      public Ruby getRuntime()
      Description copied from interface: LocalContextProvider
      Returns a Ruby runtime of a specified scope.
      Returns:
      a Ruby runtime
    • getVarMap

      public BiVariableMap getVarMap()
      Description copied from interface: LocalContextProvider
      Returns a BiVariableMap of a specified scope.
      Returns:
      a variable map
    • getAttributeMap

      public Map getAttributeMap()
      Description copied from interface: LocalContextProvider
      Returns an attribute map of a specified scope.
      Returns:
      an attribute map
    • isRuntimeInitialized

      public boolean isRuntimeInitialized()
      Description copied from interface: LocalContextProvider
      Tests whether Ruby runtime has been initialized or not.
      Returns:
      true if initialized, false otherwise.
    • terminate

      public void terminate()
      Description copied from interface: LocalContextProvider
      Clears up a variable map.