Interface PipelineRepositoryConnectorFactory

All Known Implementing Classes:
FilteringPipelineRepositoryConnectorFactory, OfflinePipelineRepositoryConnectorFactory

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

    • newInstance

      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.