org.jwarp.service.work
Interface IToolManager

All Superinterfaces:
IConfigurable
All Known Implementing Classes:
ToolManager

public interface IToolManager
extends IConfigurable

The IWorkManager is responsible for managing all the available tools and their status. A tool can be registered to this manager to be available to the application.


Method Summary
 void addLibrary(ILibrary lib)
          Tries to add the library given.
 void addTool(IToolFactory tool)
          Tries to add the tool given.
 IToolFactory getTool(java.lang.String name)
          Returns the tool with the name given or null.
 java.util.Iterator getTools()
          Returns all available tools.
 ITool makeTool(java.lang.String name, Parameter[] params)
          Make a new tool, ready for execution
 void removeTool(IToolFactory tool)
          Tries to remove the tool given.
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 

Method Detail

addTool

public void addTool(IToolFactory tool)
Tries to add the tool given.
Parameters:
The - new tool

addLibrary

public void addLibrary(ILibrary lib)
Tries to add the library given.
Parameters:
The - library

removeTool

public void removeTool(IToolFactory tool)
Tries to remove the tool given.
Parameters:
tool -  
Throws:
NotFoundException - If the tool could not be found

getTool

public IToolFactory getTool(java.lang.String name)
Returns the tool with the name given or null.
Returns:
The tool or null

getTools

public java.util.Iterator getTools()
Returns all available tools.
Returns:
the tools.

makeTool

public ITool makeTool(java.lang.String name,
                      Parameter[] params)
               throws NotFoundException
Make a new tool, ready for execution

©   O R C A   S y s t e m s