toolbus.tool.execution
Class DefaultToolExecutor
java.lang.Object
toolbus.tool.execution.DefaultToolExecutor
- All Implemented Interfaces:
- IToolExecutor
public class DefaultToolExecutor
- extends java.lang.Object
- implements IToolExecutor
This tool executor implements the default behavior of an executor.
(Which means it just executes tools and nothing else).
- Author:
- Arnold Lankamp
Method Summary |
void |
execute()
Executes the tool that will be associated with the tool instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toolInstance
private final ToolInstance toolInstance
toolDefinition
private final ToolDefinition toolDefinition
toolbus
private final ToolBus toolbus
DefaultToolExecutor
public DefaultToolExecutor(ToolInstance toolInstance,
ToolDefinition toolDefinition,
ToolBus toolbus)
- Constructor.
- Parameters:
toolInstance
- The tool instance to which the tool is associated.toolDefinition
- The definition of the tool.toolbus
- The toolbus to which the tool should connect.
execute
public void execute()
throws ToolBusException
- Description copied from interface:
IToolExecutor
- Executes the tool that will be associated with the tool instance.
- Specified by:
execute
in interface IToolExecutor
- Throws:
ToolBusException
- Thrown when the tool could not be started.- See Also:
IToolExecutor.execute()