Package org.eclipse.aether.internal.impl
Class DefaultRepositoryLayoutProvider
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryLayoutProvider
- All Implemented Interfaces:
RepositoryLayoutProvider
@Singleton
@Named
public final class DefaultRepositoryLayoutProvider
extends Object
implements RepositoryLayoutProvider
-
Constructor Summary
ConstructorDescriptionDefaultRepositoryLayoutProvider
(Map<String, RepositoryLayoutFactory> layoutFactories) -
Method Summary
Modifier and TypeMethodDescriptionnewRepositoryLayout
(RepositorySystemSession session, RemoteRepository repository) Tries to retrieve a repository layout for the specified remote repository.
-
Constructor Details
-
DefaultRepositoryLayoutProvider
-
-
Method Details
-
newRepositoryLayout
public RepositoryLayout newRepositoryLayout(RepositorySystemSession session, RemoteRepository repository) throws NoRepositoryLayoutException Description copied from interface:RepositoryLayoutProvider
Tries to retrieve a repository layout for the specified remote repository.- Specified by:
newRepositoryLayout
in interfaceRepositoryLayoutProvider
- Parameters:
session
- The repository system session from which to configure the layout, must not benull
.repository
- The remote repository to create a layout for, must not benull
.- Returns:
- The layout for the given repository, never
null
. - Throws:
NoRepositoryLayoutException
- If none of the installed layout factories can provide a repository layout for the specified remote repository.
-