commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Zeigermann <oliver.zeigerm...@gmail.com>
Subject Re: [transaction] Paths for IDs, and locking
Date Sat, 18 Dec 2004 23:27:37 GMT
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
<antranig@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


Mime
View raw message