Author: bombe
Date: 2007-10-29 17:59:48 +0000 (Mon, 29 Oct 2007)
New Revision: 15645
Added:
trunk/freenet/src/freenet/pluginmanager/FredPluginMultiple.java
Modified:
trunk/freenet/src/freenet/pluginmanager/PluginInfoWrapper.java
Log:
add future support for multiple instances of a plugin
Added: trunk/freenet/src/freenet/pluginmanager/FredPluginMultiple.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/FredPluginMultiple.java
(rev 0)
+++ trunk/freenet/src/freenet/pluginmanager/FredPluginMultiple.java
2007-10-29 17:59:48 UTC (rev 15645)
@@ -0,0 +1,30 @@
+/*
+ * freenet - FredPluginMultiple.java Copyright ? 2007 David Roden
+ *
+ * This program is free software; you can redistribute it and/or modify it
under
+ * the terms of the GNU General Public License as published by the Free
Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+package freenet.pluginmanager;
+
+/**
+ * Interface that has to be implemented for plugins that can be loaded more
than
+ * once.
+ *
+ * @author David ‘Bombe’ Roden <bombe at freenetproject.org>
+ * @version $Id$
+ */
+public interface FredPluginMultiple {
+
+}
Property changes on:
trunk/freenet/src/freenet/pluginmanager/FredPluginMultiple.java
___________________________________________________________________
Name: svn:keywords
+ Id
Modified: trunk/freenet/src/freenet/pluginmanager/PluginInfoWrapper.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginInfoWrapper.java
2007-10-29 14:26:33 UTC (rev 15644)
+++ trunk/freenet/src/freenet/pluginmanager/PluginInfoWrapper.java
2007-10-29 17:59:48 UTC (rev 15645)
@@ -19,6 +19,7 @@
private boolean isThreadlessPlugin;
private boolean isIPDetectorPlugin;
private boolean isPortForwardPlugin;
+ private boolean isMultiplePlugin;
private boolean autoRefresh;
private String filename;
private HashSet toadletLinks=new HashSet();
@@ -38,6 +39,7 @@
isThreadlessPlugin = (plug instanceof FredPluginThreadless);
isIPDetectorPlugin = (plug instanceof FredPluginIPDetector);
isPortForwardPlugin = (plug instanceof FredPluginPortForward);
+ isMultiplePlugin = (plug instanceof FredPluginMultiple);
this.autoRefresh = autoRefresh;
}
@@ -164,7 +166,11 @@
public boolean isPortForwardPlugin() {
return isPortForwardPlugin;
}
-
+
+ public boolean isMultiplePlugin() {
+ return isMultiplePlugin;
+ }
+
public synchronized boolean isStopping() {
return stopping;
}