Package org.apache.maven.resolver
Class MavenChainedWorkspaceReader
java.lang.Object
org.apache.maven.resolver.MavenChainedWorkspaceReader
- All Implemented Interfaces:
- MavenWorkspaceReader,- org.eclipse.aether.repository.WorkspaceReader
A maven workspace reader that delegates to a chain of other readers, effectively aggregating their contents.
 
This class, while technically is not immutable, should be considered as such once set up. If not mutated, it is also thread-safe. The mutation of this class instances should happen beforehand their use in session.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected List<org.eclipse.aether.repository.WorkspaceReader> protected org.eclipse.aether.repository.WorkspaceRepository
- 
Constructor SummaryConstructorsConstructorDescriptionMavenChainedWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader... readers) Creates a new workspace reader by chaining the specified readers.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader) findArtifact(org.eclipse.aether.artifact.Artifact artifact) findModel(org.eclipse.aether.artifact.Artifact artifact) findVersions(org.eclipse.aether.artifact.Artifact artifact) List<org.eclipse.aether.repository.WorkspaceReader> org.eclipse.aether.repository.WorkspaceRepositorystatic org.eclipse.aether.repository.WorkspaceReaderof(Collection<org.eclipse.aether.repository.WorkspaceReader> workspaceReaderCollection) chains a collection ofWorkspaceReadersvoidsetReaders(Collection<org.eclipse.aether.repository.WorkspaceReader> readers) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.aether.repository.WorkspaceReaderfindArtifactPath
- 
Field Details- 
readers
- 
repositoryprotected org.eclipse.aether.repository.WorkspaceRepository repository
 
- 
- 
Constructor Details- 
MavenChainedWorkspaceReaderpublic MavenChainedWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader... readers) Creates a new workspace reader by chaining the specified readers.- Parameters:
- readers- The readers to chain must not be- null.
 
 
- 
- 
Method Details- 
getRepositorypublic org.eclipse.aether.repository.WorkspaceRepository getRepository()- Specified by:
- getRepositoryin interface- org.eclipse.aether.repository.WorkspaceReader
 
- 
findModel- Specified by:
- findModelin interface- MavenWorkspaceReader
 
- 
findArtifact- Specified by:
- findArtifactin interface- org.eclipse.aether.repository.WorkspaceReader
 
- 
findVersions- Specified by:
- findVersionsin interface- org.eclipse.aether.repository.WorkspaceReader
 
- 
setReaders
- 
getReaders
- 
addReaderpublic void addReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader) 
- 
ofpublic static org.eclipse.aether.repository.WorkspaceReader of(Collection<org.eclipse.aether.repository.WorkspaceReader> workspaceReaderCollection) chains a collection ofWorkspaceReaders- Parameters:
- workspaceReaderCollection- the collection of readers, might be empty but never- null
- Returns:
- if the collection contains only one item returns the single item, otherwise creates a new
         MavenChainedWorkspaceReaderchaining all readers in the order of the given collection.
 
 
-