Class ChainedWorkspaceReader
java.lang.Object
org.eclipse.aether.util.repository.ChainedWorkspaceReader
- All Implemented Interfaces:
- WorkspaceReader
A workspace reader that delegates to a chain of other readers, effectively aggregating their contents.
- 
Constructor SummaryConstructorsConstructorDescriptionChainedWorkspaceReader(WorkspaceReader... readers) Creates a new workspace reader by chaining the specified readers.
- 
Method SummaryModifier and TypeMethodDescriptionfindArtifact(Artifact artifact) Locates the specified artifact.findVersions(Artifact artifact) Determines all available versions of the specified artifact.Gets a description of the workspace repository.static WorkspaceReadernewInstance(WorkspaceReader reader1, WorkspaceReader reader2) Creates a new workspace reader by chaining the specified 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
- 
Constructor Details- 
ChainedWorkspaceReaderCreates a new workspace reader by chaining the specified readers.- Parameters:
- readers- the readers to chain, may be- null
- See Also:
 
 
- 
- 
Method Details- 
newInstanceCreates 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 be- null
- reader2- the second workspace reader, may be- null
- Returns:
- the chained reader or nullif no workspace reader was supplied
 
- 
findArtifactDescription copied from interface:WorkspaceReaderLocates the specified artifact.- Specified by:
- findArtifactin interface- WorkspaceReader
- Parameters:
- artifact- The artifact to locate, must not be- null.
- Returns:
- The path to the artifact or nullif the artifact is not available.
 
- 
findVersionsDescription copied from interface:WorkspaceReaderDetermines all available versions of the specified artifact.- Specified by:
- findVersionsin interface- WorkspaceReader
- Parameters:
- artifact- The artifact whose versions should be listed, must not be- null.
- Returns:
- The available versions of the artifact, must not be null.
 
- 
getRepositoryDescription copied from interface:WorkspaceReaderGets a description of the workspace repository.- Specified by:
- getRepositoryin interface- WorkspaceReader
- Returns:
- The repository description, never null.
 
 
-