org.jwarp.service.work
Class TESTWorkManager.TestToolFactory
java.lang.Object
|
+--org.jwarp.service.work.TESTWorkManager.TestToolFactory
- All Implemented Interfaces:
- IToolFactory
- Enclosing class:
- TESTWorkManager
- public class TESTWorkManager.TestToolFactory
- extends java.lang.Object
- implements IToolFactory
|
Field Summary |
(package private) java.lang.String |
name
|
(package private) long |
runTime
|
(package private) boolean |
willFail
|
|
Method Summary |
java.lang.String |
getDescription()
Returns the description of this tool |
java.lang.String |
getName()
Returns the tools default name (can be overridden ba xml configuration) |
java.util.Iterator |
getParameters()
Returns the parameter description for this tool |
ITool |
makeTool(Parameter[] params)
Run the tool using the concrete parameters passed. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
java.lang.String name
runTime
long runTime
willFail
boolean willFail
TESTWorkManager.TestToolFactory
public TESTWorkManager.TestToolFactory(java.lang.String name,
long time)
TESTWorkManager.TestToolFactory
public TESTWorkManager.TestToolFactory(java.lang.String name,
long time,
boolean willFail)
TESTWorkManager.TestToolFactory
public TESTWorkManager.TestToolFactory(java.lang.String name)
makeTool
public ITool makeTool(Parameter[] params)
throws java.lang.IllegalArgumentException
- Run the tool using the concrete parameters passed.
- Specified by:
makeTool in interface IToolFactory
- Returns:
- The tools result or null.
getParameters
public java.util.Iterator getParameters()
- Returns the parameter description for this tool
- Specified by:
getParameters in interface IToolFactory
- Returns:
- The tools parameters
getName
public java.lang.String getName()
- Returns the tools default name (can be overridden ba xml configuration)
- Specified by:
getName in interface IToolFactory
- Returns:
- The tools default name
getDescription
public java.lang.String getDescription()
- Returns the description of this tool
- Specified by:
getDescription in interface IToolFactory
- Returns:
- The tool descriptions.