public final class ChainedWorkspaceReader extends Object implements WorkspaceReader
| Constructor and Description |
|---|
ChainedWorkspaceReader(WorkspaceReader... readers)
Creates a new workspace reader by chaining the specified readers.
|
| Modifier and Type | Method and Description |
|---|---|
File |
findArtifact(Artifact artifact) |
List<String> |
findVersions(Artifact artifact) |
WorkspaceRepository |
getRepository() |
static WorkspaceReader |
newInstance(WorkspaceReader reader1,
WorkspaceReader reader2)
Creates a new workspace reader by chaining the specified readers.
|
public ChainedWorkspaceReader(WorkspaceReader... readers)
readers - The readers to chain, may be null.newInstance(WorkspaceReader, WorkspaceReader)public static WorkspaceReader newInstance(WorkspaceReader reader1, WorkspaceReader reader2)
null.reader1 - The first workspace reader, may be null.reader2 - The second workspace reader, may be null.null if no workspace reader was supplied.public File findArtifact(Artifact artifact)
findArtifact in interface WorkspaceReaderpublic List<String> findVersions(Artifact artifact)
findVersions in interface WorkspaceReaderpublic WorkspaceRepository getRepository()
getRepository in interface WorkspaceReaderCopyright © 2010–2021 The Apache Software Foundation. All rights reserved.