com.googlecode.lightest.core
Class ThreadedLightestContext

java.lang.Object
  extended by java.lang.ThreadLocal<T>
      extended by java.lang.InheritableThreadLocal
          extended by com.googlecode.lightest.core.ThreadedLightestContext
All Implemented Interfaces:
groovy.lang.GroovyObject

public class ThreadedLightestContext
extends InheritableThreadLocal
implements groovy.lang.GroovyObject


Constructor Summary
ThreadedLightestContext(LightestContextFactory factory)
           
 
Method Summary
protected  LightestContext childValue(LightestContext parentValue)
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
protected  LightestContext initialValue()
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.InheritableThreadLocal
childValue
 
Methods inherited from class java.lang.ThreadLocal
get, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadedLightestContext

public ThreadedLightestContext(LightestContextFactory factory)
Parameters:
factory - the factory that will be used to create new context instances on each thread
Method Detail

initialValue

protected LightestContext initialValue()
Overrides:
initialValue in class ThreadLocal

childValue

protected LightestContext childValue(LightestContext parentValue)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2009. All Rights Reserved.