Package org.eclipse.aether.internal.impl
Class Maven2RepositoryLayoutFactory
- java.lang.Object
-
- org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory
-
- All Implemented Interfaces:
org.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory
@Singleton @Named("maven2") public final class Maven2RepositoryLayoutFactory extends java.lang.Object implements org.eclipse.aether.spi.connector.layout.RepositoryLayoutFactoryProvides a Maven-2 repository layout for repositories with content type"default".
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_CHECKSUMS_ALGORITHMSComma-separated list of checksum algorithms with which checksums are validated (downloaded) and generated (uploaded) with this layout.static java.lang.StringCONFIG_PROP_DOWNLOAD_CHECKSUMS_ALGORITHMSComma-separated list of checksum algorithms with which checksums are validated (downloaded) with this layout.static java.lang.StringCONFIG_PROP_UPLOAD_CHECKSUMS_ALGORITHMSComma-separated list of checksum algorithms with which checksums are generated and uploaded with this layout.static java.lang.StringDEFAULT_CHECKSUMS_ALGORITHMSstatic java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description Maven2RepositoryLayoutFactory(org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector, org.eclipse.aether.spi.artifact.ArtifactPredicateFactory artifactPredicateFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetPriority()org.eclipse.aether.spi.connector.layout.RepositoryLayoutnewInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository)Maven2RepositoryLayoutFactorysetPriority(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_CHECKSUMS_ALGORITHMS
public static final java.lang.String CONFIG_PROP_CHECKSUMS_ALGORITHMS
Comma-separated list of checksum algorithms with which checksums are validated (downloaded) and generated (uploaded) with this layout. Resolver by default supports following algorithms: MD5, SHA-1, SHA-256 and SHA-512. New algorithms can be added by implementing ChecksumAlgorithmFactory component. To configure separately checksums for download or upload, useCONFIG_PROP_DOWNLOAD_CHECKSUMS_ALGORITHMSandCONFIG_PROP_UPLOAD_CHECKSUMS_ALGORITHMSrespectively.- Since:
- 1.8.0
- See Also:
- Constant Field Values
-
DEFAULT_CHECKSUMS_ALGORITHMS
public static final java.lang.String DEFAULT_CHECKSUMS_ALGORITHMS
- See Also:
- Constant Field Values
-
CONFIG_PROP_UPLOAD_CHECKSUMS_ALGORITHMS
public static final java.lang.String CONFIG_PROP_UPLOAD_CHECKSUMS_ALGORITHMS
Comma-separated list of checksum algorithms with which checksums are generated and uploaded with this layout. Resolver by default supports following algorithms: MD5, SHA-1, SHA-256 and SHA-512. New algorithms can be added by implementing ChecksumAlgorithmFactory component. If this property is set, it overrides the value set inCONFIG_PROP_CHECKSUMS_ALGORITHMSfor uploads.- Since:
- 2.0.15
- See Also:
- Constant Field Values
-
CONFIG_PROP_DOWNLOAD_CHECKSUMS_ALGORITHMS
public static final java.lang.String CONFIG_PROP_DOWNLOAD_CHECKSUMS_ALGORITHMS
Comma-separated list of checksum algorithms with which checksums are validated (downloaded) with this layout. Resolver by default supports following algorithms: MD5, SHA-1, SHA-256 and SHA-512. New algorithms can be added by implementing ChecksumAlgorithmFactory component. If this property is set, it overrides the value set inCONFIG_PROP_CHECKSUMS_ALGORITHMSfor downloads.- Since:
- 2.0.15
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Maven2RepositoryLayoutFactory
@Inject public Maven2RepositoryLayoutFactory(org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector, org.eclipse.aether.spi.artifact.ArtifactPredicateFactory artifactPredicateFactory)
-
-
Method Detail
-
getPriority
public float getPriority()
- Specified by:
getPriorityin interfaceorg.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory
-
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 org.eclipse.aether.spi.connector.layout.RepositoryLayout newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository) throws org.eclipse.aether.transfer.NoRepositoryLayoutException
- Specified by:
newInstancein interfaceorg.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory- Throws:
org.eclipse.aether.transfer.NoRepositoryLayoutException
-
-