@Named(value="enhanced") @Component(role=LocalRepositoryManagerFactory.class, hint="enhanced") public class EnhancedLocalRepositoryManagerFactory extends Object implements LocalRepositoryManagerFactory, Service
"default" or "" (automatic).
Enhanced local repository manager is built upon the classical Maven 2.0 local repository structure but additionally keeps
track of from what repositories a cached artifact was resolved.
Resolution of locally cached artifacts will be rejected in case the current resolution request does not match the
known source repositories of an artifact, thereby emulating physically separated artifact caches per remote repository.| Constructor and Description |
|---|
EnhancedLocalRepositoryManagerFactory() |
| Modifier and Type | Method and Description |
|---|---|
float |
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(RepositorySystemSession session,
LocalRepository repository)
Tries to create a repository manager for the specified local repository.
|
EnhancedLocalRepositoryManagerFactory |
setLoggerFactory(LoggerFactory loggerFactory) |
public EnhancedLocalRepositoryManagerFactory()
public LocalRepositoryManager newInstance(RepositorySystemSession session, LocalRepository repository) throws NoLocalRepositoryManagerException
LocalRepositoryManagerFactorytype, which may for example denote the used directory
structure.newInstance in interface LocalRepositoryManagerFactorysession - 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 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 EnhancedLocalRepositoryManagerFactory setLoggerFactory(LoggerFactory loggerFactory)
public float getPriority()
LocalRepositoryManagerFactorygetPriority in interface LocalRepositoryManagerFactoryCopyright © 2010-2013 The Eclipse Foundation. All Rights Reserved.