1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
public interface MyPluginSolution2 {
/**
* Plugin is loaded but not started, it shouldn't be used.
**/
loadPlugin(PluginLifeCycleEvent plce);
/**
* Plugin is started, it must be ready to use.
* If not, the method must throw an exception.
**/
startPlugin(PluginLifeCycleEvent plce);
/**
* Plugin is stopped, it shouldn't be used anymore. Execution resources can be released (eg. clean cache).
* Optionally, plugin stopping can be cancelled by throwing a VetoException.
**/
stopPlugin(PluginLifeCycleEvent plce);
/**
* Plugin is unloaded, all resources must be released.
**/
unloadPlugin(PluginLifeCycleEvent plce);
} |