class CompoundRepository extends AbstractRepository
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.
Constructor and Description |
---|
CompoundRepository(java.lang.String namespace,
java.nio.file.Path prefix,
java.util.List<Repository> slaveRepositories) |
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
getPrimaryArtifactPath(Artifact artifact,
ArtifactContext context,
java.lang.String pattern)
Obtain the preferred path to given artifact in this repository.
|
java.util.Set<java.nio.file.Path> |
getRootPaths() |
getNamespace
public CompoundRepository(java.lang.String namespace, java.nio.file.Path prefix, java.util.List<Repository> slaveRepositories)
public java.nio.file.Path getPrimaryArtifactPath(Artifact artifact, ArtifactContext context, java.lang.String pattern)
Repository
Returned path is relative to the repository base.
context
- TODOpattern
- TODOpublic java.util.Set<java.nio.file.Path> getRootPaths()
Copyright © 2012–2017 Red Hat, Inc.. All rights reserved.