public interface LocalContextProvider
LocalContext
from
a specified scope defined by LocalContextScope
. Users can configure
Ruby runtime by using methods of this interface before Ruby runtime is used.
Default scope is LocalContextScope.THREADSAFE.Modifier and Type | Method and Description |
---|---|
Map |
getAttributeMap()
Returns an attribute map of a specified scope.
|
LocalVariableBehavior |
getLocalVariableBehavior()
Returns a local variable behavior associated to the 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 |
setClassCache(ClassCache classCache)
Deprecated.
|
void |
setLoadPaths(List loadPaths)
Deprecated.
|
void |
terminate()
Clears up a variable map.
|
@Deprecated void setLoadPaths(List loadPaths)
loadPaths
- is a list of paths to load scritps@Deprecated void setClassCache(ClassCache classCache)
classCache
- is a class cache optionRubyInstanceConfig getRubyInstanceConfig()
RubyInstanceConfig
.boolean isRuntimeInitialized()
Ruby getRuntime()
LocalVariableBehavior getLocalVariableBehavior()
BiVariableMap getVarMap()
BiVariableMap
of a specified scope.Map getAttributeMap()
void terminate()
Copyright © 2001-2016 JRuby. All Rights Reserved.