@Component(role=Repository.class, hint="compound", instantiationStrategy="per-lookup") public class CompoundRepository extends Object implements Repository
This repository aggregates zero or more other repositories. The repositories are ordered by preference.
All requests are forwarded to repositories backing this compound repository. If no repositories are aggregated then this repository is equivalent to empty repository.
WARNING: This class is part of internal implementation of XMvn and it is marked as public only for technical reasons. This class is not part of XMvn API. Client code using XMvn should not reference it directly.
Constructor and Description |
---|
CompoundRepository() |
Modifier and Type | Method and Description |
---|---|
void |
configure(List<Stereotype> stereotypes,
Properties properties,
org.codehaus.plexus.util.xml.Xpp3Dom configuration)
Configure this repository with given set of properties and repository-specific XML configuration.
|
List<RepositoryPath> |
getArtifactPaths(org.eclipse.aether.artifact.Artifact artifact)
Get list of possible paths to given artifact in this repository.
|
List<RepositoryPath> |
getArtifactPaths(List<org.eclipse.aether.artifact.Artifact> artifacts)
Get list of possible paths to given artifacts in this repository.
|
String |
getNamespace() |
RepositoryPath |
getPrimaryArtifactPath(org.eclipse.aether.artifact.Artifact artifact)
Obtain the preferred path to given artifact in this repository.
|
void |
setNamespace(String namespace) |
public void configure(List<Stereotype> stereotypes, Properties properties, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
Repository
The meaning of properties and XML configuration is dependent on particular repository implementation.
configure
in interface Repository
public List<RepositoryPath> getArtifactPaths(org.eclipse.aether.artifact.Artifact artifact)
Repository
All returned paths are relative to the repository base.
getArtifactPaths
in interface Repository
public List<RepositoryPath> getArtifactPaths(List<org.eclipse.aether.artifact.Artifact> artifacts)
Repository
All returned paths are relative to the repository base.
getArtifactPaths
in interface Repository
public RepositoryPath getPrimaryArtifactPath(org.eclipse.aether.artifact.Artifact artifact)
Repository
Returned path is relative to the repository base.
getPrimaryArtifactPath
in interface Repository
public String getNamespace()
getNamespace
in interface Repository
public void setNamespace(String namespace)
setNamespace
in interface Repository
Copyright © 2012–2013 Red Hat, Inc.. All rights reserved.