|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repository
This is a simple interface for storing and retrieving an Artifact
within a repository. A much more elaborate design would have separate repository
representation from its access or connection methods representation but it's not
really the point here ... Such details are left to implementations and we can find
such well designed repository access libraries (look at VFS on http://jakarta.apache.org/commons/vfs
or at Wagon for Maven2 on http://maven.apache.org).
Implementations or wrapper around existing libraries may choose to use the
Artifact informations to categorize it within their internal structure.
Artifact
Method Summary | |
---|---|
java.io.InputStream |
getArtifact(Artifact artifact)
Retrieve the input stream corresponding to a given Artifact. |
void |
storeArtifact(Artifact artifact,
java.io.File content)
Store the content of a given Artifact within repository datastore. |
void |
storeArtifact(Artifact artifact,
java.io.InputStream is)
Store the content of a given Artifact within repository datastore using an input stream. |
Method Detail |
---|
java.io.InputStream getArtifact(Artifact artifact) throws ConnectionException, TransferException
artifact
- The domain object representing artifact to retrieve
InputStream
on artifact content
ConnectionException
- if physical repository cannot be connected
TransferException
- if something wrong occur after connection, during transfervoid storeArtifact(Artifact artifact, java.io.File content) throws ConnectionException, TransferException
artifact
- The domain object representing artifact to storecontent
- File representing artifact content (must not be a directory)
ConnectionException
- if physical repository cannot be connected
TransferException
- if something wrong occur after connection, during transfervoid storeArtifact(Artifact artifact, java.io.InputStream is) throws ConnectionException, TransferException
artifact
- The domain object representing artifact to storeis
- InputStream on artifact content
ConnectionException
- if physical repository cannot be connected
TransferException
- if something wrong occur after connection, during transfer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |