|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.embed.internal.AbstractLocalContextProvider
org.jruby.embed.internal.ConcurrentLocalContextProvider
public class ConcurrentLocalContextProvider
Concurrent type local context provider. Ruby runtime returned from the getRuntime() method is a classloader-global runtime. While variables (except global variables) and constants are thread local.
Field Summary |
---|
Fields inherited from class org.jruby.embed.internal.AbstractLocalContextProvider |
---|
behavior, config, lazy |
Constructor Summary | |
---|---|
ConcurrentLocalContextProvider(LocalVariableBehavior behavior,
boolean lazy)
|
Method Summary | |
---|---|
java.util.Map |
getAttributeMap()
Returns an attribute map of a specified scope. |
RubyInstanceConfig |
getRubyInstanceConfig()
Gets an instance of RubyInstanceConfig . |
Ruby |
getRuntime()
Returns a Ruby runtime of a specified scope. |
BiVariableMap |
getVarMap()
Returns a BiVariableMap of a specified scope. |
boolean |
isRuntimeInitialized()
Tests whether Ruby runtime has been initialized or not. |
void |
terminate()
Clears up a variable map. |
Methods inherited from class org.jruby.embed.internal.AbstractLocalContextProvider |
---|
getInstance, getLocalVariableBehavior, setClassCache, setLoadPaths |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConcurrentLocalContextProvider(LocalVariableBehavior behavior, boolean lazy)
Method Detail |
---|
public Ruby getRuntime()
LocalContextProvider
public RubyInstanceConfig getRubyInstanceConfig()
LocalContextProvider
RubyInstanceConfig
.
getRubyInstanceConfig
in interface LocalContextProvider
getRubyInstanceConfig
in class AbstractLocalContextProvider
public BiVariableMap getVarMap()
LocalContextProvider
BiVariableMap
of a specified scope.
public java.util.Map getAttributeMap()
LocalContextProvider
public boolean isRuntimeInitialized()
LocalContextProvider
public void terminate()
LocalContextProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |