Interface PipelineRepositoryConnectorFactory


A pipeline factory to create piped repository connectors.
Since:
2.0.8
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    The priority of this pipeline factory.
    newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository, RepositoryConnector delegate)
    Create a piped repository connector for the specified remote repository.
  • Method Details

    • newInstance

      RepositoryConnector newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository, RepositoryConnector delegate)
      Create a piped repository connector for the specified remote repository. Typically, a factory will inspect RemoteRepository.getProtocol() and RemoteRepository.getContentType() to determine whether it can handle a repository. This method never throws or returns null, least can do is to return the passed in delegate connector instance.
      Parameters:
      session - The repository system session from which to configure the connector, must not be null. In particular, a connector must notify any RepositorySystemSession.getTransferListener() set for the session and should obey the timeouts configured for the session.
      repository - The remote repository to create a connector for, must not be null.
      delegate - The delegate connector, never null. The delegate is "right hand" connector in connector pipeline.
      Returns:
      The connector for the given repository, never null. If pipeline wants to step aside, it must return the passed in delegate connector instance.
    • getPriority

      float getPriority()
      The priority of this pipeline factory. Higher priority makes connector closer to right end (tail) of pipeline (closest to delegate), while lower priority makes it closer to left hand (head) of the pipeline.