Package org.jruby.embed.internal
Class ThreadSafeLocalContextProvider
java.lang.Object
org.jruby.embed.internal.AbstractLocalContextProvider
org.jruby.embed.internal.ThreadSafeLocalContextProvider
- All Implemented Interfaces:
LocalContextProvider
-
Field Summary
Fields inherited from class org.jruby.embed.internal.AbstractLocalContextProvider
behavior, config, lazy
-
Constructor Summary
ConstructorsConstructorDescriptionThreadSafeLocalContextProvider
(LocalVariableBehavior behavior, boolean lazy) -
Method Summary
Modifier and TypeMethodDescriptionReturns an attribute map of a specified scope.Returns a Ruby runtime of a specified scope.Returns aBiVariableMap
of a specified scope.boolean
Tests whether Ruby runtime has been initialized or not.void
Clears up a variable map.Methods inherited from class org.jruby.embed.internal.AbstractLocalContextProvider
getInstance, getLocalVariableBehavior, getRubyInstanceConfig
-
Constructor Details
-
ThreadSafeLocalContextProvider
-
ThreadSafeLocalContextProvider
-
-
Method Details
-
getRuntime
Description copied from interface:LocalContextProvider
Returns a Ruby runtime of a specified scope.- Returns:
- a Ruby runtime
-
getVarMap
Description copied from interface:LocalContextProvider
Returns aBiVariableMap
of a specified scope.- Returns:
- a variable 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.
-