On Monday 14 April 2008 01:15, Florent Daignière wrote:
> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-04-13 23:42:00]:
> 
> > Author: dbkr
> > Date: 2008-04-13 23:42:00 +0000 (Sun, 13 Apr 2008)
> > New Revision: 19275
> > 
> > Added:
> >    trunk/freenet/src/freenet/pluginmanager/FredPluginVersioned.java
> > Modified:
> >    trunk/freenet/src/freenet/clients/http/PproxyToadlet.java
> >    trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
> >    trunk/freenet/src/freenet/pluginmanager/PluginInfoWrapper.java
> > Log:
> > Add versioned plugin & version column in plugin toadlet.
> > 
> > Added: trunk/freenet/src/freenet/pluginmanager/FredPluginVersioned.java
> > ===================================================================
> > --- trunk/freenet/src/freenet/pluginmanager/FredPluginVersioned.java        
> >                         
(rev 0)
> > +++ trunk/freenet/src/freenet/pluginmanager/FredPluginVersioned.java        
2008-04-13 23:42:00 UTC (rev 19275)
> > @@ -0,0 +1,10 @@
> > +package freenet.pluginmanager;
> > +
> > +/**
> > + * A Fred plugin that has a version
> > + * @author dbkr
> > + *
> > + */
> > +public interface FredPluginVersioned {
> > +   public String getVersion();
> > +}
> 
> A String is not handy to compare, what about adding an int too ?

Agreed, plugin versioning would be most useful for e.g. auto-update of 
plugins, which requires that we be able to compare two versions and figure 
out which is more recent.

Attachment: pgp3Wt1hOJxUx.pgp
Description: PGP signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to