@Component(role=LocalRepositoryManagerFactory.class, hint="simple") public class SimpleLocalRepositoryManagerFactory extends Object implements LocalRepositoryManagerFactory, Service
SimpleLocalRepositoryManager
s 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
LocalRepositoryManagerFactory
newInstance
in interface LocalRepositoryManagerFactory
repository
- 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)
Service
initService
in interface Service
locator
- The service locator, must not be null
.public SimpleLocalRepositoryManagerFactory setLogger(Logger logger)
public int getPriority()
LocalRepositoryManagerFactory
getPriority
in interface LocalRepositoryManagerFactory
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.