xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken MacLeod <...@bitsko.slc.ut.us>
Subject Re: [Proposal] Guidlines for package distribution of Java projects
Date Fri, 19 Nov 1999 21:57:28 GMT
Stefano Mazzocchi <stefano@apache.org> writes:

> 1) Versioning
> I propose that every package named
>  org.apache.xxx
> contains a class named Version like this (example for Cocoon)
> public class Version {
>    public static String getName() {
> 	return "Cocoon";
>    }
> [...]

We faced a similar issue in Casbah <http://casbah.org/> where we have
many modules all implementing the same interface.  The solution we
came up with was to have a single method info() that returned a
Hashtable.  The Hashtable, in turn, could contain standard keys and
module-specific keys, and the values of those keys could be pretty
much anything.  We also use info() to provide statistical information
(SNMP-like) because most of the modules are front-ends to other

  Ken MacLeod

View raw message