org.codehaus.mojo.mrm.api.maven
Class BaseArtifactStore

java.lang.Object
  extended by org.codehaus.mojo.mrm.api.maven.BaseArtifactStore
All Implemented Interfaces:
Serializable, ArtifactStore

public abstract class BaseArtifactStore
extends Object
implements ArtifactStore

Base implementation of ArtifactStore.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
BaseArtifactStore()
           
 
Method Summary
 void set(Artifact artifact, InputStream content)
          Create/update the specified artifact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.mojo.mrm.api.maven.ArtifactStore
get, getArtifactIds, getArtifacts, getGroupIds, getLastModified, getMetadata, getMetadataLastModified, getSize, getVersions
 

Constructor Detail

BaseArtifactStore

public BaseArtifactStore()
Method Detail

set

public void set(Artifact artifact,
                InputStream content)
         throws IOException
Create/update the specified artifact. This is an optional method for implementers.

Specified by:
set in interface ArtifactStore
Parameters:
artifact - the artifact to create/update.
content - the stream of contents (implementer is responsible for closing).
Throws:
IOException - if the content could not be read/written.


Copyright © 2009-2011 Codehaus. All Rights Reserved.