Package org.eclipse.aether.internal.impl
Class EnhancedLocalRepositoryManagerFactory
java.lang.Object
org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManagerFactory
- All Implemented Interfaces:
org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory
,org.eclipse.aether.spi.locator.Service
@Singleton
@Named("enhanced")
public class EnhancedLocalRepositoryManagerFactory
extends Object
implements org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory, org.eclipse.aether.spi.locator.Service
Creates enhanced local repository managers for repository types
"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.-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeprecated.EnhancedLocalRepositoryManagerFactory
(LocalPathComposer localPathComposer, TrackingFileManager trackingFileManager, LocalPathPrefixComposerFactory localPathPrefixComposerFactory) -
Method Summary
Modifier and TypeMethodDescriptionfloat
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) setPriority
(float priority) Sets the priority of this component.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
EnhancedLocalRepositoryManagerFactory
Deprecated. -
EnhancedLocalRepositoryManagerFactory
@Inject public EnhancedLocalRepositoryManagerFactory(LocalPathComposer localPathComposer, TrackingFileManager trackingFileManager, LocalPathPrefixComposerFactory localPathPrefixComposerFactory)
-
-
Method Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
newInstance
public org.eclipse.aether.repository.LocalRepositoryManager newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.LocalRepository repository) throws org.eclipse.aether.repository.NoLocalRepositoryManagerException - Specified by:
newInstance
in interfaceorg.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory
- Throws:
org.eclipse.aether.repository.NoLocalRepositoryManagerException
-
getPriority
- Specified by:
getPriority
in interfaceorg.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory
-
setPriority
Sets the priority of this component.- Parameters:
priority
- The priority.- Returns:
- This component for chaining, never
null
.
-