Package org.jruby.embed.internal
Class AbstractLocalContextProvider
java.lang.Object
org.jruby.embed.internal.AbstractLocalContextProvider
- All Implemented Interfaces:
LocalContextProvider
- Direct Known Subclasses:
ConcurrentLocalContextProvider
,SingleThreadLocalContextProvider
,SingletonLocalContextProvider
,ThreadSafeLocalContextProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LocalVariableBehavior
protected final RubyInstanceConfig
protected boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
protected
protected
AbstractLocalContextProvider
(RubyInstanceConfig config, LocalVariableBehavior behavior) -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalContext
Returns a local variable behavior associated to the scope.Gets an instance ofRubyInstanceConfig
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jruby.embed.internal.LocalContextProvider
getAttributeMap, getRuntime, getVarMap, isRuntimeInitialized, terminate
-
Field Details
-
config
-
behavior
-
lazy
protected boolean lazy
-
-
Constructor Details
-
AbstractLocalContextProvider
protected AbstractLocalContextProvider() -
AbstractLocalContextProvider
-
AbstractLocalContextProvider
-
AbstractLocalContextProvider
-
-
Method Details
-
getInstance
-
getRubyInstanceConfig
Description copied from interface:LocalContextProvider
Gets an instance ofRubyInstanceConfig
.- Specified by:
getRubyInstanceConfig
in interfaceLocalContextProvider
- Returns:
- an instance of RubyInstanceConfig.
-
getLocalVariableBehavior
Description copied from interface:LocalContextProvider
Returns a local variable behavior associated to the scope.- Specified by:
getLocalVariableBehavior
in interfaceLocalContextProvider
- Returns:
- a local variable behavior
-