org.sonatype.aether.impl.internal
Class DefaultLocalRepositoryProvider

java.lang.Object
  extended by org.sonatype.aether.impl.internal.DefaultLocalRepositoryProvider
All Implemented Interfaces:
LocalRepositoryProvider, Service

@Component(role=LocalRepositoryProvider.class)
public class DefaultLocalRepositoryProvider
extends Object
implements LocalRepositoryProvider, Service

Author:
Benjamin Bentmann

Constructor Summary
DefaultLocalRepositoryProvider()
           
 
Method Summary
 DefaultLocalRepositoryProvider addLocalRepositoryManagerFactory(LocalRepositoryManagerFactory factory)
           
 void initService(ServiceLocator locator)
          Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.
 LocalRepositoryManager newLocalRepositoryManager(LocalRepository localRepository)
           
 DefaultLocalRepositoryProvider setLocalRepositoryManagerFactories(List<LocalRepositoryManagerFactory> factories)
           
 DefaultLocalRepositoryProvider setLogger(Logger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLocalRepositoryProvider

public DefaultLocalRepositoryProvider()
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.

setLogger

public DefaultLocalRepositoryProvider setLogger(Logger logger)

setLocalRepositoryManagerFactories

public DefaultLocalRepositoryProvider setLocalRepositoryManagerFactories(List<LocalRepositoryManagerFactory> factories)

addLocalRepositoryManagerFactory

public DefaultLocalRepositoryProvider addLocalRepositoryManagerFactory(LocalRepositoryManagerFactory factory)

newLocalRepositoryManager

public LocalRepositoryManager newLocalRepositoryManager(LocalRepository localRepository)
                                                 throws NoLocalRepositoryManagerException
Specified by:
newLocalRepositoryManager in interface LocalRepositoryProvider
Throws:
NoLocalRepositoryManagerException


Copyright © 2010-2012. All Rights Reserved.