@Named public class DefaultLocalRepositoryProvider extends Object implements LocalRepositoryProvider, org.eclipse.aether.spi.locator.Service
Constructor and Description |
---|
DefaultLocalRepositoryProvider() |
Modifier and Type | Method and Description |
---|---|
DefaultLocalRepositoryProvider |
addLocalRepositoryManagerFactory(org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory factory) |
void |
initService(org.eclipse.aether.spi.locator.ServiceLocator locator) |
org.eclipse.aether.repository.LocalRepositoryManager |
newLocalRepositoryManager(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.repository.LocalRepository repository)
Creates a new manager for the specified local repository.
|
DefaultLocalRepositoryProvider |
setLocalRepositoryManagerFactories(Collection<org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory> factories) |
public DefaultLocalRepositoryProvider()
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
initService
in interface org.eclipse.aether.spi.locator.Service
public DefaultLocalRepositoryProvider addLocalRepositoryManagerFactory(org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory factory)
public DefaultLocalRepositoryProvider setLocalRepositoryManagerFactories(Collection<org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory> factories)
public org.eclipse.aether.repository.LocalRepositoryManager newLocalRepositoryManager(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.LocalRepository repository) throws org.eclipse.aether.repository.NoLocalRepositoryManagerException
LocalRepositoryProvider
newLocalRepositoryManager
in interface LocalRepositoryProvider
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
.null
.org.eclipse.aether.repository.NoLocalRepositoryManagerException
- If the specified repository type is not recognized or no base directory
is given.RepositorySystem.newLocalRepositoryManager(RepositorySystemSession, LocalRepository)
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.