@Singleton @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 |
| Modifier and Type | Field and Description |
|---|---|
private ChecksumAlgorithmFactorySelector |
checksumAlgorithmFactorySelector |
static java.lang.String |
CONFIG_PROP_CHECKSUMS_ALGORITHMS |
static java.lang.String |
CONFIG_PROP_OMIT_CHECKSUMS_FOR_EXTENSIONS |
private static java.lang.String |
DEFAULT_CHECKSUMS_ALGORITHMS |
private static java.lang.String |
DEFAULT_OMIT_CHECKSUMS_FOR_EXTENSIONS |
private float |
priority |
| 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 java.lang.String CONFIG_PROP_CHECKSUMS_ALGORITHMS
private static final java.lang.String DEFAULT_CHECKSUMS_ALGORITHMS
public static final java.lang.String CONFIG_PROP_OMIT_CHECKSUMS_FOR_EXTENSIONS
private static final java.lang.String DEFAULT_OMIT_CHECKSUMS_FOR_EXTENSIONS
private float priority
private final ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector
@Deprecated public Maven2RepositoryLayoutFactory()
@Inject public Maven2RepositoryLayoutFactory(ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector)
public float getPriority()
RepositoryLayoutFactorygetPriority in interface RepositoryLayoutFactorypublic Maven2RepositoryLayoutFactory setPriority(float priority)
priority - The priority.null.public RepositoryLayout newInstance(RepositorySystemSession session, RemoteRepository repository) throws NoRepositoryLayoutException
RepositoryLayoutFactoryRemoteRepository.getContentType() to determine whether it can handle a repository.newInstance in interface RepositoryLayoutFactorysession - 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.