Class ChainedWorkspaceReader
java.lang.Object
org.eclipse.aether.util.repository.ChainedWorkspaceReader
- All Implemented Interfaces:
org.eclipse.aether.repository.WorkspaceReader
public final class ChainedWorkspaceReader
extends Object
implements org.eclipse.aether.repository.WorkspaceReader
A workspace reader that delegates to a chain of other readers, effectively aggregating their contents.
-
Constructor Summary
ConstructorDescriptionChainedWorkspaceReader
(org.eclipse.aether.repository.WorkspaceReader... readers) Creates a new workspace reader by chaining the specified readers. -
Method Summary
Modifier and TypeMethodDescriptionfindArtifact
(org.eclipse.aether.artifact.Artifact artifact) findVersions
(org.eclipse.aether.artifact.Artifact artifact) org.eclipse.aether.repository.WorkspaceRepository
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.
-
Constructor Details
-
ChainedWorkspaceReader
Creates a new workspace reader by chaining the specified readers.- Parameters:
readers
- The readers to chain, may benull
.- See Also:
-
-
Method Details
-
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
null
if no workspace reader was supplied.
-
findArtifact
- Specified by:
findArtifact
in interfaceorg.eclipse.aether.repository.WorkspaceReader
-
findVersions
- Specified by:
findVersions
in interfaceorg.eclipse.aether.repository.WorkspaceReader
-
getRepository
- Specified by:
getRepository
in interfaceorg.eclipse.aether.repository.WorkspaceReader
-