org.sonatype.aether.util.repository
Class ChainedWorkspaceReader
java.lang.Object
org.sonatype.aether.util.repository.ChainedWorkspaceReader
- All Implemented Interfaces:
- WorkspaceReader
public class ChainedWorkspaceReader
- extends Object
- implements WorkspaceReader
A workspace reader that delegates to a chain of other readers, effectively aggregating their contents.
- Author:
- Benjamin Bentmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainedWorkspaceReader
public ChainedWorkspaceReader(WorkspaceReader... readers)
- Creates a new workspace reader by chaining the specified readers.
- Parameters:
readers - The readers to chain, may be null.- See Also:
newInstance(WorkspaceReader, WorkspaceReader)
newInstance
public static WorkspaceReader newInstance(WorkspaceReader reader1,
WorkspaceReader reader2)
- Creates a new workspace reader by chaining the specified readers. In contrast to the constructor, this factory
method will avoid creating an actual chained reader if one of the specified readers is actually
null.
- Parameters:
reader1 - The first workspace reader, may be null.reader2 - The second workspace reader, may be null.
- Returns:
- The chained reader or
null if no workspace reader was supplied.
findArtifact
public File findArtifact(Artifact artifact)
- Specified by:
findArtifact in interface WorkspaceReader
findVersions
public List<String> findVersions(Artifact artifact)
- Specified by:
findVersions in interface WorkspaceReader
getRepository
public WorkspaceRepository getRepository()
- Specified by:
getRepository in interface WorkspaceReader
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.