Package org.eclipse.aether.spi.connector
Interface PipelineRepositoryConnectorFactory
public interface PipelineRepositoryConnectorFactory
A pipeline factory to create piped repository connectors.
- Since:
- 2.0.8
-
Method Summary
Modifier and TypeMethodDescriptionfloat
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 inspectRemoteRepository.getProtocol()
andRemoteRepository.getContentType()
to determine whether it can handle a repository. This method never throws or returnsnull
, 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 benull
. In particular, a connector must notify anyRepositorySystemSession.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 benull
.delegate
- The delegate connector, nevernull
. 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.
-