com.googlecode.lightest.core
Class LightestContextAware

java.lang.Object
  extended by com.googlecode.lightest.core.LightestContextAware
All Implemented Interfaces:
groovy.lang.GroovyObject
Direct Known Subclasses:
LightestTask, LightestTestCase

public class LightestContextAware
extends Object
implements groovy.lang.GroovyObject

Subclasses can provide all necessary contextual information for running a Lightest test.


Constructor Summary
LightestContextAware()
           
 
Method Summary
 LightestContext getContext()
          Returns the thread context as provided by the dispatcher, which must be set.
 ITaskDispatcher getDispatcher()
           
 ITestEnvironment getEnv()
          Returns the thread environment from the context provided by the dispatcher, which must be set.
 groovy.lang.MetaClass getMetaClass()
           
 IPreferences getPrefs()
          Returns the thread preferences from the context provided by the dispatcher, which must be set.
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setDispatcher(ITaskDispatcher value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightestContextAware

public LightestContextAware()
Method Detail

getDispatcher

public ITaskDispatcher getDispatcher()

setDispatcher

public void setDispatcher(ITaskDispatcher value)

getContext

public LightestContext getContext()
Returns the thread context as provided by the dispatcher, which must be set.


getPrefs

public IPreferences getPrefs()
Returns the thread preferences from the context provided by the dispatcher, which must be set.


getEnv

public ITestEnvironment getEnv()
Returns the thread environment from the context provided by the dispatcher, which must be set.


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.