Package org.eclipse.aether.internal.impl
Class DefaultRepositoryConnectorProvider
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider
- All Implemented Interfaces:
RepositoryConnectorProvider
@Singleton
@Named
public class DefaultRepositoryConnectorProvider
extends Object
implements RepositoryConnectorProvider
-
Constructor Summary
ConstructorDescriptionDefaultRepositoryConnectorProvider
(Map<String, RepositoryConnectorFactory> connectorFactories, RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
Method Summary
Modifier and TypeMethodDescriptionnewRepositoryConnector
(RepositorySystemSession session, RemoteRepository repository) Tries to create a repository connector for the specified remote repository.
-
Constructor Details
-
DefaultRepositoryConnectorProvider
@Inject public DefaultRepositoryConnectorProvider(Map<String, RepositoryConnectorFactory> connectorFactories, RemoteRepositoryFilterManager remoteRepositoryFilterManager)
-
-
Method Details
-
newRepositoryConnector
public RepositoryConnector newRepositoryConnector(RepositorySystemSession session, RemoteRepository repository) throws NoRepositoryConnectorException Description copied from interface:RepositoryConnectorProvider
Tries to create a repository connector for the specified remote repository.- Specified by:
newRepositoryConnector
in interfaceRepositoryConnectorProvider
- Parameters:
session
- The repository system session from which to configure the connector, must not benull
.repository
- The remote repository to create a connector for, must not benull
.- Returns:
- The connector for the given repository, never
null
. - Throws:
NoRepositoryConnectorException
- If no available factory can create a connector for the specified remote repository.
-