Package org.eclipse.aether.internal.impl
Class DefaultRepositoryLayoutProvider
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryLayoutProvider
- All Implemented Interfaces:
RepositoryLayoutProvider
,Service
@Singleton
@Named
public final class DefaultRepositoryLayoutProvider
extends Object
implements RepositoryLayoutProvider, Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultRepositoryLayoutProvider
(Set<RepositoryLayoutFactory> layoutFactories) -
Method Summary
Modifier and TypeMethodDescriptionvoid
initService
(ServiceLocator locator) Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.newRepositoryLayout
(RepositorySystemSession session, RemoteRepository repository) Tries to retrieve a repository layout for the specified remote repository.
-
Constructor Details
-
DefaultRepositoryLayoutProvider
Deprecated. -
DefaultRepositoryLayoutProvider
-
-
Method Details
-
initService
Description copied from interface:Service
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initService
in interfaceService
- Parameters:
locator
- The service locator, must not benull
.
-
addRepositoryLayoutFactory
-
setRepositoryLayoutFactories
-
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.
-