@Singleton @Named(value="maven2") public final class Maven2RepositoryLayoutFactory extends Object implements RepositoryLayoutFactory
"default"
.Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PROP_CHECKSUMS_ALGORITHMS |
static String |
CONFIG_PROP_OMIT_CHECKSUMS_FOR_EXTENSIONS |
Constructor and Description |
---|
Maven2RepositoryLayoutFactory()
Deprecated.
|
Maven2RepositoryLayoutFactory(ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector) |
Modifier and Type | Method and Description |
---|---|
float |
getPriority()
The priority of this factory.
|
RepositoryLayout |
newInstance(RepositorySystemSession session,
RemoteRepository repository)
Tries to create a repository layout for the specified remote repository.
|
Maven2RepositoryLayoutFactory |
setPriority(float priority)
Sets the priority of this component.
|
public static final String CONFIG_PROP_CHECKSUMS_ALGORITHMS
public static final String CONFIG_PROP_OMIT_CHECKSUMS_FOR_EXTENSIONS
@Deprecated public Maven2RepositoryLayoutFactory()
@Inject public Maven2RepositoryLayoutFactory(ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector)
public float getPriority()
RepositoryLayoutFactory
getPriority
in interface RepositoryLayoutFactory
public Maven2RepositoryLayoutFactory setPriority(float priority)
priority
- The priority.null
.public RepositoryLayout newInstance(RepositorySystemSession session, RemoteRepository repository) throws NoRepositoryLayoutException
RepositoryLayoutFactory
RemoteRepository.getContentType()
to determine whether it can handle a repository.newInstance
in interface RepositoryLayoutFactory
session
- The repository system session from which to configure the layout, must not be null
.repository
- The remote repository to create a layout for, must not be null
.null
.NoRepositoryLayoutException
- If the factory cannot create a repository layout for the specified remote
repository.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.