[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] [prov] request handler orientation


looking through the artifact repo code I noticed that the way it is now, MirrorRequests get/are given a RequestHandler and then that is used to do the actual file transfer.  Is there a usecase that drives the repo communication policy to be externally defined?  That is, is there a reason that the repository object itself should not decide how it is going to talk to the backing store (e.g., server)?  For example, MirrorRequest.perform() should just say, IArtifactRepository.getArtifact(key | descriptor | whatever) and get back a stream that it can write into the destination repo.

Thoughts?

Jeff