Hi Antranig, I have now added the interface (plus initial implementations) you proposed:
http://cvs.apache.org/viewcvs.cgi/jakarta-commons/transaction/src/java/org/apache/commons/transaction/file/ResourceIdToPathMapper.java?rev=1.1&view=log I have not taken over getAllPaths, as it did not occur suitable to me. If you want it I am pretty easy to convince, though :) I have added you to the official contributors as well. Thanks, Oliver On Thu, 11 Nov 2004 14:08:59 +0000, Antranig Basman <[EMAIL PROTECTED]> wrote: > > > Use of an interface something like this could help - the > > > Base64 decision for example seems something that should really be > > > delegated to external code. > > > > > > public interface PathForIDMapper { > > > /** Returns a path, possibly including a directory prefix > > > statically * hashed from the supplied resource ID */ > > > public String getPathForID(ResourceID id); > > > /** Returns a list of all prefixes that could possibly be returned > > > * by getPathForID */ > > > public String[] getAllPaths(); > > > } > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
