6 * The plugin executor interface.
8 public interface IPluginExecutor {
11 * Adds a directory to monitor.
12 * May be called before and also after start has been called.
14 * @param dir the directory to monitor.
16 void monitor(File dir);
19 * Stops monitoring the specified directory.
20 * May be called before and also after start has been called.
22 * @param dir the directory which should not be monitored anymore.
24 void stopMonitoring(File dir);
27 * Starts the plugin executor.
28 * All added directories will be monitored and any .jar file processed.
29 * If there are any {@link IPluginExecutable} implementations,
30 * they are executed within own threads.
35 * Stops the plugin executor.
36 * The monitoring of directories and the execution
37 * of the plugins should stop as soon as possible.