|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.TaskDispatcher
public class TaskDispatcher
Responsible for actually performing tasks.
| Constructor Summary | |
|---|---|
TaskDispatcher(ThreadedLightestContext context)
|
|
| Method Summary | |
|---|---|
ITaskResult |
dispatch(TaskNode taskNode,
ITaskResult parentResult,
ITestResult testResult)
Dispatches the task and all nested tasks represented by the Node tree, as available in the API of the current testcase, and using the current dispatch strategy. |
LightestContext |
getContext()
Returns the thread local context associated with this dispatcher, for the currently executing thread. |
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String name)
|
LightestTestCase |
getTestCase()
Returns the testcase this dispatcher is currently assigned to, or null if it is not assigned to a testcase. |
Object |
invokeMethod(String name,
Object args)
|
void |
setEnvironment(ITestEnvironment env)
|
void |
setListener(ILightestTestListener listener)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setPreferences(IPreferences prefs)
|
void |
setProperty(String name,
Object value)
|
void |
setStrategy(ITaskDispatchStrategy strategy)
|
void |
setTestCase(LightestTestCase testcase)
Assigns a testcase to this dispatcher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskDispatcher(ThreadedLightestContext context)
| Method Detail |
|---|
public void setPreferences(IPreferences prefs)
setPreferences in interface ITaskDispatcherpublic void setEnvironment(ITestEnvironment env)
setEnvironment in interface ITaskDispatcherpublic void setStrategy(ITaskDispatchStrategy strategy)
setStrategy in interface ITaskDispatcherstrategy - public void setListener(ILightestTestListener listener)
setListener in interface ITaskDispatcherpublic void setTestCase(LightestTestCase testcase)
setTestCase in interface ITaskDispatchertestcase - public LightestTestCase getTestCase()
getTestCase in interface ITaskDispatcherpublic LightestContext getContext()
getContext in interface ITaskDispatcher
public ITaskResult dispatch(TaskNode taskNode,
ITaskResult parentResult,
ITestResult testResult)
dispatch in interface ITaskDispatchertaskNode - parentResult - public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||