You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Oliver Zeigermann <ol...@gmail.com> on 2004/12/19 00:27:37 UTC
Re: [transaction] Paths for IDs, and locking
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
<an...@caret.cam.ac.uk> 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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org