cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierpaolo Fumagalli <>
Subject Re: A Suggestion for Cocoon2 Store
Date Sun, 26 Mar 2000 11:59:41 GMT
Ricardo Rocha wrote:
> Interface org.apache.cocoon.components.Store defines
> methods store(), hold() and remove() as void, not
> throwing any exception.
> Since persistent stores (e.g. a filesystem-based store)
> may generate errors (e.g. IOException) during these
> operations, it makes sense to make the above methods
> return boolean so that client classes are able to test
> whether the operation actually succeeded even in
> the absence of an exception.
> Note that this is the way handles operations
> such as delete(), createNewFile() or mkdirs()...
> What do you guys think?

Good point... Actually the interface was written by Stefano, so,
I believe that whenever someone will ever implement it, the interface is
going to change :)

pier: stable structure erected over water to allow docking of seacraft
<>      <>

View raw message