import freenet.pluginmanager.FredPlugin;
import freenet.pluginmanager.FredPluginBaseL10n;
import freenet.pluginmanager.FredPluginL10n;
+import freenet.pluginmanager.FredPluginThreadless;
import freenet.pluginmanager.PluginRespirator;
/**
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10n {
+public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10n, FredPluginThreadless {
static {
/* initialize logging. */
/** The core. */
private Core core;
+ /** The web interface. */
+ private WebInterface webInterface;
+
/** The l10n helper. */
private PluginL10n l10n;
FreenetInterface freenetInterface = new FreenetInterface(pluginRespirator.getNode(), pluginRespirator.getHLSimpleClient());
/* create the web interface. */
- WebInterface webInterface = new WebInterface(this);
+ webInterface = new WebInterface(this);
/* create core. */
core = new Core();
*/
@Override
public void terminate() {
+ /* stop the web interface. */
+ webInterface.stop();
+
/* stop the core. */
core.stop();