org.eclipse.aether.internal.impl

## Class DefaultRepositoryConnectorProvider

- java.lang.Object
- - org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider

- All Implemented Interfaces:
    RepositoryConnectorProvider, Service

      @Named
      public class DefaultRepositoryConnectorProvider
      extends Object
      implements RepositoryConnectorProvider, Service

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultRepositoryConnectorProvider()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DefaultRepositoryConnectorProvider` | `addRepositoryConnectorFactory(RepositoryConnectorFactory factory)`
    `void` | `initService(ServiceLocator locator)` Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.
    `RepositoryConnector` | `newRepositoryConnector(RepositorySystemSession session, RemoteRepository repository)` Tries to create a repository connector for the specified remote repository.
    `DefaultRepositoryConnectorProvider` | `setLoggerFactory(LoggerFactory loggerFactory)`
    `DefaultRepositoryConnectorProvider` | `setRepositoryConnectorFactories(Collection<RepositoryConnectorFactory> factories)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultRepositoryConnectorProvider

          public DefaultRepositoryConnectorProvider()

  - ### Method Detail

    - #### initService

          public void initService(ServiceLocator locator)

      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 interface `Service`
      Parameters:
        `locator` - The service locator, must not be `null`.

    - #### setLoggerFactory

          public DefaultRepositoryConnectorProvider setLoggerFactory(LoggerFactory loggerFactory)

    - #### addRepositoryConnectorFactory

          public DefaultRepositoryConnectorProvider addRepositoryConnectorFactory(RepositoryConnectorFactory factory)

    - #### setRepositoryConnectorFactories

          public DefaultRepositoryConnectorProvider setRepositoryConnectorFactories(Collection<RepositoryConnectorFactory> factories)

    - #### 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 interface `RepositoryConnectorProvider`
      Parameters:
        `session` - The repository system session from which to configure the connector, must not be `null`.
        `repository` - The remote repository to create a connector for, must not be `null`.
      Returns:
        The connector for the given repository, never `null`.
      Throws:
        `NoRepositoryConnectorException` - If no available factory can create a connector for the specified remote repository.

Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.