r26676 - trunk/freenet/src/freenet/pluginmanager

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: toad
Date: 2009-04-09 14:34:45 +0000 (Thu, 09 Apr 2009)
New Revision: 26676

Added:
   trunk/freenet/src/freenet/pluginmanager/FredPluginRealVersioned.java
Modified:
   trunk/freenet/src/freenet/pluginmanager/FredPluginVersioned.java
Log:
Add FredPluginRealVersioned, explain the difference: FredPluginVersioned is a marketing version, a string that can't be easily compared. FredPluginRealVersioned is a long which can be easily compared.


Added: trunk/freenet/src/freenet/pluginmanager/FredPluginRealVersioned.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/FredPluginRealVersioned.java	                        (rev 0)
+++ trunk/freenet/src/freenet/pluginmanager/FredPluginRealVersioned.java	2009-04-09 14:34:45 UTC (rev 26676)
@@ -0,0 +1,16 @@
+package freenet.pluginmanager;
+
+/** Version of a plugin in a form that is easy to compare. */
+public interface FredPluginRealVersioned {
+	
+	/** The version of the plugin in a form that is easy to compare: a long!
+	 * Version 150 will always be later than version 20. */
+	public long getRealVersion();
+	
+	// There is no point in reporting the dependancies or the minimum node version,
+	// because we have already been loaded!
+	
+	// SVN revisions are going away, so there is no point returning them either.
+	// Git has hashes, which are strings.
+	
+}

Modified: trunk/freenet/src/freenet/pluginmanager/FredPluginVersioned.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/FredPluginVersioned.java	2009-04-09 13:28:06 UTC (rev 26675)
+++ trunk/freenet/src/freenet/pluginmanager/FredPluginVersioned.java	2009-04-09 14:34:45 UTC (rev 26676)
@@ -1,7 +1,10 @@
 package freenet.pluginmanager;
 
 /**
- * A Fred plugin that has a version
+ * A Fred plugin that has a version.
+ * This is a user-presentable version, a marketing version, a string, 
+ * not necessarily easy to compare! Like "1.0.3". Whereas a real version would be 103.
+ * @see FredPluginRealVersioned for real versions.
  * @author dbkr
  *
  */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.