org.jruby.embed.internal
Class AbstractLocalContextProvider

java.lang.Object
  extended by org.jruby.embed.internal.AbstractLocalContextProvider
All Implemented Interfaces:
LocalContextProvider
Direct Known Subclasses:
ConcurrentLocalContextProvider, SingleThreadLocalContextProvider, SingletonLocalContextProvider, ThreadSafeLocalContextProvider

public abstract class AbstractLocalContextProvider
extends java.lang.Object
implements LocalContextProvider

Author:
Yoko Harada

Field Summary
protected  LocalVariableBehavior behavior
           
protected  RubyInstanceConfig config
           
protected  boolean lazy
           
 
Constructor Summary
AbstractLocalContextProvider()
           
 
Method Summary
protected  LocalContext getInstance()
           
 LocalVariableBehavior getLocalVariableBehavior()
          Returns a local variable behavior associated to the scope.
 RubyInstanceConfig getRubyInstanceConfig()
          Gets an instance of RubyInstanceConfig.
 void setClassCache(ClassCache classCache)
          Deprecated. 
 void setLoadPaths(java.util.List loadPaths)
          Deprecated. 
 
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 Detail

config

protected RubyInstanceConfig config

behavior

protected LocalVariableBehavior behavior

lazy

protected boolean lazy
Constructor Detail

AbstractLocalContextProvider

public AbstractLocalContextProvider()
Method Detail

setLoadPaths

@Deprecated
public void setLoadPaths(java.util.List loadPaths)
Deprecated. 

Description copied from interface: LocalContextProvider
Sets a scripts' loading path to a Ruby runtime.

Specified by:
setLoadPaths in interface LocalContextProvider
Parameters:
loadPaths - is a list of paths to load scritps

setClassCache

@Deprecated
public void setClassCache(ClassCache classCache)
Deprecated. 

Description copied from interface: LocalContextProvider
Sets a class cash option to a Ruby runtime.

Specified by:
setClassCache in interface LocalContextProvider
Parameters:
classCache - is a class cache option

getRubyInstanceConfig

public RubyInstanceConfig getRubyInstanceConfig()
Description copied from interface: LocalContextProvider
Gets an instance of RubyInstanceConfig.

Specified by:
getRubyInstanceConfig in interface LocalContextProvider
Returns:
an instance of RubyInstanceConfig.

getInstance

protected LocalContext getInstance()

getLocalVariableBehavior

public LocalVariableBehavior getLocalVariableBehavior()
Description copied from interface: LocalContextProvider
Returns a local variable behavior associated to the scope.

Specified by:
getLocalVariableBehavior in interface LocalContextProvider
Returns:
a local variable behavior


Copyright © 2002-2009 JRuby Team. All Rights Reserved.