Class ChainedWorkspaceReader
- java.lang.Object
-
- org.eclipse.aether.util.repository.ChainedWorkspaceReader
-
- All Implemented Interfaces:
org.eclipse.aether.repository.WorkspaceReader
public final class ChainedWorkspaceReader extends java.lang.Object implements org.eclipse.aether.repository.WorkspaceReader
A workspace reader that delegates to a chain of other readers, effectively aggregating their contents.
-
-
Constructor Summary
Constructors Constructor Description ChainedWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader... readers)Creates a new workspace reader by chaining the specified readers.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilefindArtifact(org.eclipse.aether.artifact.Artifact artifact)java.util.List<java.lang.String>findVersions(org.eclipse.aether.artifact.Artifact artifact)org.eclipse.aether.repository.WorkspaceRepositorygetRepository()static org.eclipse.aether.repository.WorkspaceReadernewInstance(org.eclipse.aether.repository.WorkspaceReader reader1, org.eclipse.aether.repository.WorkspaceReader reader2)Creates a new workspace reader by chaining the specified readers.
-
-
-
Constructor Detail
-
ChainedWorkspaceReader
public ChainedWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader... readers)
Creates a new workspace reader by chaining the specified readers.- Parameters:
readers- The readers to chain, may benull.- See Also:
newInstance(WorkspaceReader, WorkspaceReader)
-
-
Method Detail
-
newInstance
public static org.eclipse.aether.repository.WorkspaceReader newInstance(org.eclipse.aether.repository.WorkspaceReader reader1, org.eclipse.aether.repository.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 actuallynull.- Parameters:
reader1- The first workspace reader, may benull.reader2- The second workspace reader, may benull.- Returns:
- The chained reader or
nullif no workspace reader was supplied.
-
findArtifact
public java.io.File findArtifact(org.eclipse.aether.artifact.Artifact artifact)
- Specified by:
findArtifactin interfaceorg.eclipse.aether.repository.WorkspaceReader
-
findVersions
public java.util.List<java.lang.String> findVersions(org.eclipse.aether.artifact.Artifact artifact)
- Specified by:
findVersionsin interfaceorg.eclipse.aether.repository.WorkspaceReader
-
getRepository
public org.eclipse.aether.repository.WorkspaceRepository getRepository()
- Specified by:
getRepositoryin interfaceorg.eclipse.aether.repository.WorkspaceReader
-
-