org.eclipse.aether.impl

## Interface LocalRepositoryProvider

- All Known Implementing Classes:
    DefaultLocalRepositoryProvider

      public interface LocalRepositoryProvider

  Retrieves a local repository manager from the installed local repository manager factories.
  Restriction:
    This interface is not intended to be extended by clients.
  Restriction:
    This interface is not intended to be implemented by clients.
  Provisional:
    This type is provisional and can be changed, moved or removed without prior notice.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `LocalRepositoryManager` | `newLocalRepositoryManager(RepositorySystemSession session, LocalRepository localRepository)` Creates a new manager for the specified local repository.

- - ### Method Detail

    - #### newLocalRepositoryManager

          LocalRepositoryManager newLocalRepositoryManager(RepositorySystemSession session,
                                                         LocalRepository localRepository)
                                                           throws NoLocalRepositoryManagerException

      Creates a new manager for the specified local repository. If the specified local repository has no type, the default local repository type of the system will be used. Note: It is expected that this method invocation is one of the last steps of setting up a new session, in particular any configuration properties should have been set already.
      Parameters:
        `session` - The repository system session from which to configure the manager, must not be `null`.
        `localRepository` - The local repository to create a manager for, must not be `null`.
      Returns:
        The local repository manager, never `null`.
      Throws:
        `NoLocalRepositoryManagerException` - If the specified repository type is not recognized or no base directory is given.
      See Also:
        `RepositorySystem.newLocalRepositoryManager(RepositorySystemSession, LocalRepository)`

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