@Singleton @Named(value="enhanced") public class EnhancedLocalRepositoryManagerFactory extends Object implements org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory, org.eclipse.aether.spi.locator.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() |
EnhancedLocalRepositoryManagerFactory(LocalPathComposer localPathComposer,
TrackingFileManager trackingFileManager,
LocalPathPrefixComposerFactory localPathPrefixComposerFactory) |
Modifier and Type | Method and Description |
---|---|
float |
getPriority() |
void |
initService(org.eclipse.aether.spi.locator.ServiceLocator locator) |
org.eclipse.aether.repository.LocalRepositoryManager |
newInstance(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.repository.LocalRepository repository) |
EnhancedLocalRepositoryManagerFactory |
setPriority(float priority)
Sets the priority of this component.
|
public EnhancedLocalRepositoryManagerFactory()
@Inject public EnhancedLocalRepositoryManagerFactory(LocalPathComposer localPathComposer, TrackingFileManager trackingFileManager, LocalPathPrefixComposerFactory localPathPrefixComposerFactory)
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
initService
in interface org.eclipse.aether.spi.locator.Service
public org.eclipse.aether.repository.LocalRepositoryManager newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.LocalRepository repository) throws org.eclipse.aether.repository.NoLocalRepositoryManagerException
newInstance
in interface org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory
org.eclipse.aether.repository.NoLocalRepositoryManagerException
public float getPriority()
getPriority
in interface org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory
public EnhancedLocalRepositoryManagerFactory setPriority(float priority)
priority
- The priority.null
.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.