Package org.eclipse.aether.internal.impl
Class DefaultRepositoryConnectorProvider
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider
- All Implemented Interfaces:
RepositoryConnectorProvider
,Service
@Singleton
@Named
public class DefaultRepositoryConnectorProvider
extends Object
implements RepositoryConnectorProvider, Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultRepositoryConnectorProvider
(Set<RepositoryConnectorFactory> connectorFactories, RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
initService
(ServiceLocator locator) Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.newRepositoryConnector
(RepositorySystemSession session, RemoteRepository repository) Tries to create a repository connector for the specified remote repository.setRemoteRepositoryFilterManager
(RemoteRepositoryFilterManager remoteRepositoryFilterManager)
-
Constructor Details
-
DefaultRepositoryConnectorProvider
Deprecated. -
DefaultRepositoryConnectorProvider
@Inject public DefaultRepositoryConnectorProvider(Set<RepositoryConnectorFactory> connectorFactories, RemoteRepositoryFilterManager remoteRepositoryFilterManager)
-
-
Method Details
-
initService
Description copied from interface:Service
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initService
in interfaceService
- Parameters:
locator
- The service locator, must not benull
.
-
addRepositoryConnectorFactory
-
setRepositoryConnectorFactories
-
setRemoteRepositoryFilterManager
public DefaultRepositoryConnectorProvider setRemoteRepositoryFilterManager(RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
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.
-