@Component(role=LocalRepositoryManagerFactory.class, hint="enhanced") public class EnhancedLocalRepositoryManagerFactory extends Object implements LocalRepositoryManagerFactory, Service
Constructor and Description |
---|
EnhancedLocalRepositoryManagerFactory() |
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.
|
EnhancedLocalRepositoryManagerFactory |
setLogger(Logger logger) |
public EnhancedLocalRepositoryManagerFactory()
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 EnhancedLocalRepositoryManagerFactory setLogger(Logger logger)
public int getPriority()
LocalRepositoryManagerFactory
getPriority
in interface LocalRepositoryManagerFactory
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.