@Component(role=LocalRepositoryManagerFactory.class, hint="simple") public class SimpleLocalRepositoryManagerFactory extends Object implements LocalRepositoryManagerFactory, Service
SimpleLocalRepositoryManagers for repository type "simple".| Constructor and Description |
|---|
SimpleLocalRepositoryManagerFactory() |
| Modifier and Type | Method and Description |
|---|---|
int |
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(LocalRepository repository)
Tries to create a repository manager for the specified local repository.
|
SimpleLocalRepositoryManagerFactory |
setLogger(Logger logger) |
public LocalRepositoryManager newInstance(LocalRepository repository) throws NoLocalRepositoryManagerException
LocalRepositoryManagerFactorynewInstance in interface LocalRepositoryManagerFactoryrepository - The local repository to create a manager for, must not be null.null.NoLocalRepositoryManagerException - If the factory cannot create a manager for the specified local
repository.public void initService(ServiceLocator locator)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public SimpleLocalRepositoryManagerFactory setLogger(Logger logger)
public int getPriority()
LocalRepositoryManagerFactorygetPriority in interface LocalRepositoryManagerFactoryCopyright © 2010-2015 Sonatype, Inc.. All Rights Reserved.