Class 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.File findArtifact​(org.eclipse.aether.artifact.Artifact artifact)  
      java.util.List<java.lang.String> findVersions​(org.eclipse.aether.artifact.Artifact artifact)  
      org.eclipse.aether.repository.WorkspaceRepository getRepository()  
      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
    • 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 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 java.io.File findArtifact​(org.eclipse.aether.artifact.Artifact artifact)
        Specified by:
        findArtifact in interface org.eclipse.aether.repository.WorkspaceReader
      • findVersions

        public java.util.List<java.lang.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