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 WorkspaceReader
public List<String> findVersions(Artifact artifact)
findVersions
in interface WorkspaceReader
public WorkspaceRepository getRepository()
getRepository
in interface WorkspaceReader
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.