Oracle Email Migration Tool Guide Release 9.0.3 Part Number B10104-01 |
|
| View PDF |
This appendix contains information about the architecture of an API that communicates with a third party plug-in.
Any plug-in that is to work with the Migration Tool must support the following interface:
public interface PluginInterface { <pre> public boolean doTask(String taskName, String taskArgs[]) throws PluginException; public String getVersion(); public void init() throws PluginException; public void cleanUp();}
The getVersion
method must return the version number of the plug-in.
The init
method must contain any initialization code.
The cleanUp
method must contain any cleanup code.
The Migration Tool passes a command string and an argument array to the doTask
method. The values that the command string and argument array must contain for different commands are listed in Table B-1.
Any developer writing a plug-in should ensure that the plug-in accepts the above set of parameters. Various parameters on the command line are separated by a single space.