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


Reply via email to