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 Object
implements org.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory
Provides a Maven-2 repository layout for repositories with content type
"default".-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMaven2RepositoryLayoutFactory(org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector, org.eclipse.aether.spi.artifact.ArtifactPredicateFactory artifactPredicateFactory) -
Method Summary
Modifier and TypeMethodDescriptionfloatorg.eclipse.aether.spi.connector.layout.RepositoryLayoutnewInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository) setPriority(float priority) Sets the priority of this component.
-
Field Details
-
NAME
- See Also:
-
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.- Since:
- 1.8.0
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()- Value type:
String- Default value:
DEFAULT_CHECKSUMS_ALGORITHMS- Supports Repo ID Suffix:
- Yes
-
DEFAULT_CHECKSUMS_ALGORITHMS
- See Also:
-
-
Constructor Details
-
Maven2RepositoryLayoutFactory
@Inject public Maven2RepositoryLayoutFactory(org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector, org.eclipse.aether.spi.artifact.ArtifactPredicateFactory artifactPredicateFactory)
-
-
Method Details
-
getPriority
- Specified by:
getPriorityin interfaceorg.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory
-
setPriority
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
-