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