|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.shared.dependency.tree.ArtifactMetadataSourceStub
public class ArtifactMetadataSourceStub
Provides a stub to simulate an artifact metadata source.
Field Summary |
---|
Fields inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadataSource |
---|
ROLE |
Constructor Summary | |
---|---|
ArtifactMetadataSourceStub()
Creates a new artifact metadata source stub. |
Method Summary | |
---|---|
void |
addArtifactMetadata(Artifact artifact,
Set<Artifact> dependencyArtifacts)
Adds the specified dependency artifacts for the specified artifact to this artifact metadata source stub. |
void |
addAvailableVersions(Artifact artifact,
List<org.apache.maven.artifact.versioning.ArtifactVersion> versions)
Adds versions for the specified artifact to this artifact metadata source stub. |
ResolutionGroup |
retrieve(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
|
List |
retrieveAvailableVersions(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
|
Artifact |
retrieveRelocatedArtifact(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArtifactMetadataSourceStub()
Method Detail |
---|
public ResolutionGroup retrieve(Artifact artifact, ArtifactRepository localRepository, List remoteRepositories) throws ArtifactMetadataRetrievalException
retrieve
in interface ArtifactMetadataSource
ArtifactMetadataRetrievalException
public List retrieveAvailableVersions(Artifact artifact, ArtifactRepository localRepository, List remoteRepositories) throws ArtifactMetadataRetrievalException
retrieveAvailableVersions
in interface ArtifactMetadataSource
ArtifactMetadataRetrievalException
public void addArtifactMetadata(Artifact artifact, Set<Artifact> dependencyArtifacts)
artifact
- the artifact to add metadata todependencyArtifacts
- the set of artifacts to register as dependencies of the specified artifactpublic void addAvailableVersions(Artifact artifact, List<org.apache.maven.artifact.versioning.ArtifactVersion> versions)
artifact
- the artifact to add metadata toversions
- the list of versions to register as available for the specified artifactpublic Artifact retrieveRelocatedArtifact(Artifact artifact, ArtifactRepository localRepository, List remoteRepositories) throws ArtifactMetadataRetrievalException
retrieveRelocatedArtifact
in interface ArtifactMetadataSource
ArtifactMetadataRetrievalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |