|
||||||||||
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.SingletonLocalContextProvider
public class SingletonLocalContextProvider
Singleton type local context provider. As of JRuby 1.5.0 Ruby runtime returned from the getRuntime() method is a classloader-global runtime.
Field Summary |
---|
Fields inherited from class org.jruby.embed.internal.AbstractLocalContextProvider |
---|
behavior, config, lazy |
Constructor Summary | |
---|---|
SingletonLocalContextProvider(LocalVariableBehavior behavior,
boolean lazy)
|
Method Summary | |
---|---|
java.util.Map |
getAttributeMap()
Returns an attribute map of a specified scope. |
static LocalContext |
getLocalContextInstance(RubyInstanceConfig config,
LocalVariableBehavior behavior,
boolean lazy)
|
static LocalVariableBehavior |
getLocalVariableBehaviorOrNull()
|
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 SingletonLocalContextProvider(LocalVariableBehavior behavior, boolean lazy)
Method Detail |
---|
public static LocalContext getLocalContextInstance(RubyInstanceConfig config, LocalVariableBehavior behavior, boolean lazy)
public static LocalVariableBehavior getLocalVariableBehaviorOrNull()
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 |