The Meta-Environment API

toolbus.tool.execution
Class DefaultToolExecutor

java.lang.Object
  extended by 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

Field Summary
private  ToolBus toolbus
           
private  ToolDefinition toolDefinition
           
private  ToolInstance toolInstance
           
 
Constructor Summary
DefaultToolExecutor(ToolInstance toolInstance, ToolDefinition toolDefinition, ToolBus toolbus)
          Constructor.
 
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
 

Field Detail

toolInstance

private final ToolInstance toolInstance

toolDefinition

private final ToolDefinition toolDefinition

toolbus

private final ToolBus toolbus
Constructor Detail

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.
Method Detail

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()

The Meta-Environment API