Package org.eclipse.aether.internal.impl
Class DefaultLocalRepositoryProvider
java.lang.Object
org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider
- All Implemented Interfaces:
LocalRepositoryProvider
,org.eclipse.aether.spi.locator.Service
@Singleton
@Named
public class DefaultLocalRepositoryProvider
extends Object
implements LocalRepositoryProvider, org.eclipse.aether.spi.locator.Service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddLocalRepositoryManagerFactory
(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.setLocalRepositoryManagerFactories
(Collection<org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory> factories)
-
Constructor Details
-
DefaultLocalRepositoryProvider
public DefaultLocalRepositoryProvider()
-
-
Method Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
addLocalRepositoryManagerFactory
public DefaultLocalRepositoryProvider addLocalRepositoryManagerFactory(org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory factory) -
setLocalRepositoryManagerFactories
public DefaultLocalRepositoryProvider setLocalRepositoryManagerFactories(Collection<org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory> factories) -
newLocalRepositoryManager
public org.eclipse.aether.repository.LocalRepositoryManager newLocalRepositoryManager(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.LocalRepository repository) throws org.eclipse.aether.repository.NoLocalRepositoryManagerException Description copied from interface:LocalRepositoryProvider
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.- Specified by:
newLocalRepositoryManager
in interfaceLocalRepositoryProvider
- Parameters:
session
- The repository system session from which to configure the manager, must not benull
.repository
- The local repository to create a manager for, must not benull
.- Returns:
- The local repository manager, never
null
. - Throws:
org.eclipse.aether.repository.NoLocalRepositoryManagerException
- If the specified repository type is not recognized or no base directory is given.- See Also:
-
RepositorySystem.newLocalRepositoryManager(RepositorySystemSession, LocalRepository)
-