Package org.eclipse.aether.internal.impl
Class Maven2RepositoryLayoutFactory
- java.lang.Object
-
- org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory
-
- All Implemented Interfaces:
RepositoryLayoutFactory
@Named("maven2") public final class Maven2RepositoryLayoutFactory extends java.lang.Object implements RepositoryLayoutFactoryProvides a Maven-2 repository layout for repositories with content type"default".
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classMaven2RepositoryLayoutFactory.Maven2RepositoryLayoutprivate static classMaven2RepositoryLayoutFactory.Maven2RepositoryLayoutEx
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.StringCONFIG_PROP_CHECKSUMS_ALGORITHMS(package private) static java.lang.StringCONFIG_PROP_SIGNATURE_CHECKSUMS(package private) static java.lang.StringDEFAULT_CHECKSUMS_ALGORITHMSprivate floatpriority
-
Constructor Summary
Constructors Constructor Description Maven2RepositoryLayoutFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetPriority()The priority of this factory.RepositoryLayoutnewInstance(RepositorySystemSession session, RemoteRepository repository)Tries to create a repository layout for the specified remote repository.Maven2RepositoryLayoutFactorysetPriority(float priority)Sets the priority of this component.
-
-
-
Field Detail
-
CONFIG_PROP_SIGNATURE_CHECKSUMS
static final java.lang.String CONFIG_PROP_SIGNATURE_CHECKSUMS
- See Also:
- Constant Field Values
-
CONFIG_PROP_CHECKSUMS_ALGORITHMS
static final java.lang.String CONFIG_PROP_CHECKSUMS_ALGORITHMS
- See Also:
- Constant Field Values
-
DEFAULT_CHECKSUMS_ALGORITHMS
static final java.lang.String DEFAULT_CHECKSUMS_ALGORITHMS
- See Also:
- Constant Field Values
-
priority
private float priority
-
-
Method Detail
-
getPriority
public float getPriority()
Description copied from interface:RepositoryLayoutFactoryThe priority of this factory. When multiple factories can handle a given repository, factories with higher priority are preferred over those with lower priority.- Specified by:
getPriorityin interfaceRepositoryLayoutFactory- Returns:
- The priority of this factory.
-
setPriority
public Maven2RepositoryLayoutFactory setPriority(float priority)
Sets the priority of this component.- Parameters:
priority- The priority.- Returns:
- This component for chaining, never
null.
-
newInstance
public RepositoryLayout newInstance(RepositorySystemSession session, RemoteRepository repository) throws NoRepositoryLayoutException
Description copied from interface:RepositoryLayoutFactoryTries to create a repository layout for the specified remote repository. Typically, a factory will inspectRemoteRepository.getContentType()to determine whether it can handle a repository.- Specified by:
newInstancein interfaceRepositoryLayoutFactory- Parameters:
session- The repository system session from which to configure the layout, must not benull.repository- The remote repository to create a layout for, must not benull.- Returns:
- The layout for the given repository, never
null. - Throws:
NoRepositoryLayoutException- If the factory cannot create a repository layout for the specified remote repository.
-
-