@Named(value="maven2") public final class Maven2RepositoryLayoutFactory extends java.lang.Object implements RepositoryLayoutFactory
"default"
.Modifier and Type | Class and Description |
---|---|
private static class |
Maven2RepositoryLayoutFactory.Maven2RepositoryLayout |
private static class |
Maven2RepositoryLayoutFactory.Maven2RepositoryLayoutEx |
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
CONFIG_PROP_CHECKSUMS_ALGORITHMS |
(package private) static java.lang.String |
CONFIG_PROP_SIGNATURE_CHECKSUMS |
(package private) static java.lang.String |
DEFAULT_CHECKSUMS_ALGORITHMS |
private float |
priority |
Constructor and Description |
---|
Maven2RepositoryLayoutFactory() |
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.
|
static final java.lang.String CONFIG_PROP_SIGNATURE_CHECKSUMS
static final java.lang.String CONFIG_PROP_CHECKSUMS_ALGORITHMS
static final java.lang.String DEFAULT_CHECKSUMS_ALGORITHMS
private float priority
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.