org.eclipse.aether.internal.impl

## Class SimpleLocalRepositoryManagerFactory

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

- All Implemented Interfaces:
    LocalRepositoryManagerFactory, Service

      @Named(value="simple")
      @Component(role=LocalRepositoryManagerFactory.class,
                 hint="simple")
      public class SimpleLocalRepositoryManagerFactory
      extends Object
      implements LocalRepositoryManagerFactory, Service

  Creates local repository managers for repository type `"simple"`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleLocalRepositoryManagerFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `getPriority()` The priority of this factory.
    `void` | `initService(ServiceLocator locator)` Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.
    `LocalRepositoryManager` | `newInstance(RepositorySystemSession session, LocalRepository repository)` Tries to create a repository manager for the specified local repository.
    `SimpleLocalRepositoryManagerFactory` | `setLoggerFactory(LoggerFactory loggerFactory)`
    `SimpleLocalRepositoryManagerFactory` | `setPriority(float priority)` Sets the priority of this component.

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

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

- - ### Constructor Detail

    - #### SimpleLocalRepositoryManagerFactory

          public SimpleLocalRepositoryManagerFactory()

  - ### Method Detail

    - #### newInstance

          public LocalRepositoryManager newInstance(RepositorySystemSession session,
                                           LocalRepository repository)
                                             throws NoLocalRepositoryManagerException

      Description copied from interface: `LocalRepositoryManagerFactory`
      Tries to create a repository manager for the specified local repository. The distinguishing property of a local repository is its `type`, which may for example denote the used directory structure.
      Specified by:
        `newInstance` in interface `LocalRepositoryManagerFactory`
      Parameters:
        `session` - The repository system session from which to configure the manager, must not be `null`.
        `repository` - The local repository to create a manager for, must not be `null`.
      Returns:
        The manager for the given repository, never `null`.
      Throws:
        `NoLocalRepositoryManagerException` - If the factory cannot create a manager for the specified local repository.

    - #### 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 SimpleLocalRepositoryManagerFactory setLoggerFactory(LoggerFactory loggerFactory)

    - #### getPriority

          public float getPriority()

      Description copied from interface: `LocalRepositoryManagerFactory`
      The priority of this factory. Factories with higher priority are preferred over those with lower priority.
      Specified by:
        `getPriority` in interface `LocalRepositoryManagerFactory`
      Returns:
        The priority of this factory.

    - #### setPriority

          public SimpleLocalRepositoryManagerFactory setPriority(float priority)

      Sets the priority of this component.
      Parameters:
        `priority` - The priority.
      Returns:
        This component for chaining, never `null`.

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