geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Dillon <ja...@planet57.com>
Subject Re: GroupId for DayTrader needed.
Date Sat, 22 Jul 2006 09:09:20 GMT
On Jul 21, 2006, at 4:34 PM, Dain Sundstrom wrote:
> public interface Repository {
>     boolean contains(Artifact artifact);
>     File getLocation(Artifact artifact);
>     LinkedHashSet getDependencies(Artifact artifact);
> }
> public interface WriteableRepository extends Repository {
>     void copyToRepository(File source, Artifact destination,  
> FileWriteMonitor monitor) throws IOException;
>     void copyToRepository(InputStream source, int size, Artifact  
> destination, FileWriteMonitor monitor) throws IOException;
> }

These methods that take a File or return a File are not very friendly  
for providing a repository implementation that does not actually use  
File object directly.

Any reason why these are not URL objects?

--jason



Mime
View raw message