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
@Singleton @Named("enhanced") public class EnhancedLocalRepositoryManagerFactory extends java.lang.Object implements org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactoryCreates 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
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_TRACKING_FILENAMEFilename of the file in which to track the remote repositories.static java.lang.StringDEFAULT_TRACKING_FILENAMEstatic java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description EnhancedLocalRepositoryManagerFactory(LocalPathComposer localPathComposer, TrackingFileManager trackingFileManager, LocalPathPrefixComposerFactory localPathPrefixComposerFactory, org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory repositoryKeyFunctionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetPriority()org.eclipse.aether.repository.LocalRepositoryManagernewInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.LocalRepository repository)EnhancedLocalRepositoryManagerFactorysetPriority(float priority)Sets the priority of this component.
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
CONFIG_PROP_TRACKING_FILENAME
public static final java.lang.String CONFIG_PROP_TRACKING_FILENAME
Filename of the file in which to track the remote repositories.- See Also:
- Constant Field Values
-
DEFAULT_TRACKING_FILENAME
public static final java.lang.String DEFAULT_TRACKING_FILENAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EnhancedLocalRepositoryManagerFactory
@Inject public EnhancedLocalRepositoryManagerFactory(LocalPathComposer localPathComposer, TrackingFileManager trackingFileManager, LocalPathPrefixComposerFactory localPathPrefixComposerFactory, org.eclipse.aether.spi.remoterepo.RepositoryKeyFunctionFactory repositoryKeyFunctionFactory)
-
-
Method Detail
-
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:
newInstancein interfaceorg.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory- Throws:
org.eclipse.aether.repository.NoLocalRepositoryManagerException
-
getPriority
public float getPriority()
- Specified by:
getPriorityin interfaceorg.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory
-
setPriority
public EnhancedLocalRepositoryManagerFactory setPriority(float priority)
Sets the priority of this component.- Parameters:
priority- The priority.- Returns:
- This component for chaining, never
null.
-
-