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

    Constructors
    Constructor
    Description
    ChainedWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader... readers)
    Creates a new workspace reader by chaining the specified readers.
  • Method Summary

    Modifier and Type
    Method
    Description
    findArtifact(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.aether.repository.WorkspaceReader

    findArtifactPath
  • Constructor Details

  • 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 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(org.eclipse.aether.artifact.Artifact artifact)
      Specified by:
      findArtifact in interface org.eclipse.aether.repository.WorkspaceReader
    • findVersions

      public List<String> findVersions(org.eclipse.aether.artifact.Artifact artifact)
      Specified by:
      findVersions in interface org.eclipse.aether.repository.WorkspaceReader
    • getRepository

      public org.eclipse.aether.repository.WorkspaceRepository getRepository()
      Specified by:
      getRepository in interface org.eclipse.aether.repository.WorkspaceReader