01: package org.objectweb.celtix.tools.common.toolspec;
02:
03: import org.objectweb.celtix.tools.common.ToolException;
04:
05: public interface Tool {
06:
07: String TOOL_SPEC_PUBLIC_ID = "http://www.xsume.com/Xutil/ToolSpecification";
08:
09: void init() throws ToolException;
10:
11: void setContext(ToolContext ctx);
12:
13: /**
14: * A tool has to be prepared to perform it's duty any number of times.
15: */
16: void performFunction() throws ToolException;
17:
18: void destroy() throws ToolException;
19:
20: }
|