Package org.eclipse.aether.internal.impl
Class DefaultRepositoryConnectorProvider
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider
- All Implemented Interfaces:
RepositoryConnectorProvider
,org.eclipse.aether.spi.locator.Service
@Singleton
@Named
public class DefaultRepositoryConnectorProvider
extends Object
implements RepositoryConnectorProvider, org.eclipse.aether.spi.locator.Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultRepositoryConnectorProvider
(Set<org.eclipse.aether.spi.connector.RepositoryConnectorFactory> connectorFactories, RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
Method Summary
Modifier and TypeMethodDescriptionaddRepositoryConnectorFactory
(org.eclipse.aether.spi.connector.RepositoryConnectorFactory factory) void
initService
(org.eclipse.aether.spi.locator.ServiceLocator locator) org.eclipse.aether.spi.connector.RepositoryConnector
newRepositoryConnector
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository) Tries to create a repository connector for the specified remote repository.setRemoteRepositoryFilterManager
(RemoteRepositoryFilterManager remoteRepositoryFilterManager) setRepositoryConnectorFactories
(Collection<org.eclipse.aether.spi.connector.RepositoryConnectorFactory> factories)
-
Constructor Details
-
DefaultRepositoryConnectorProvider
Deprecated. -
DefaultRepositoryConnectorProvider
@Inject public DefaultRepositoryConnectorProvider(Set<org.eclipse.aether.spi.connector.RepositoryConnectorFactory> connectorFactories, RemoteRepositoryFilterManager remoteRepositoryFilterManager)
-
-
Method Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
addRepositoryConnectorFactory
public DefaultRepositoryConnectorProvider addRepositoryConnectorFactory(org.eclipse.aether.spi.connector.RepositoryConnectorFactory factory) -
setRepositoryConnectorFactories
public DefaultRepositoryConnectorProvider setRepositoryConnectorFactories(Collection<org.eclipse.aether.spi.connector.RepositoryConnectorFactory> factories) -
setRemoteRepositoryFilterManager
public DefaultRepositoryConnectorProvider setRemoteRepositoryFilterManager(RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
newRepositoryConnector
public org.eclipse.aether.spi.connector.RepositoryConnector newRepositoryConnector(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository) throws org.eclipse.aether.transfer.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:
org.eclipse.aether.transfer.NoRepositoryConnectorException
- If no available factory can create a connector for the specified remote repository.
-