@Named(value="maven2") public final class Maven2RepositoryLayoutFactory extends Object implements RepositoryLayoutFactory
"default"
.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.
|
public Maven2RepositoryLayoutFactory()
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–2018 The Apache Software Foundation. All rights reserved.