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
ConstructorsConstructorDescriptionDeprecated.DefaultRepositoryConnectorProvider(Set<RepositoryConnectorFactory> connectorFactories, RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitService(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:ServiceProvides 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:
initServicein 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:RepositoryConnectorProviderTries to create a repository connector for the specified remote repository.- Specified by:
newRepositoryConnectorin 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.
-