Package org.eclipse.aether.internal.impl
Class DefaultRepositoryLayoutProvider
- java.lang.Object
-
- org.eclipse.aether.internal.impl.DefaultRepositoryLayoutProvider
-
- All Implemented Interfaces:
RepositoryLayoutProvider
,Service
@Named public final class DefaultRepositoryLayoutProvider extends Object implements RepositoryLayoutProvider, Service
-
-
Constructor Summary
Constructors Constructor Description DefaultRepositoryLayoutProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultRepositoryLayoutProvider
addRepositoryLayoutFactory(RepositoryLayoutFactory factory)
void
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.RepositoryLayout
newRepositoryLayout(RepositorySystemSession session, RemoteRepository repository)
Tries to retrieve a repository layout for the specified remote repository.DefaultRepositoryLayoutProvider
setRepositoryLayoutFactories(Collection<RepositoryLayoutFactory> factories)
-
-
-
Constructor Detail
-
DefaultRepositoryLayoutProvider
public DefaultRepositoryLayoutProvider()
-
-
Method Detail
-
initService
public void initService(ServiceLocator locator)
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
public DefaultRepositoryLayoutProvider addRepositoryLayoutFactory(RepositoryLayoutFactory factory)
-
setRepositoryLayoutFactories
public DefaultRepositoryLayoutProvider setRepositoryLayoutFactories(Collection<RepositoryLayoutFactory> factories)
-
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.
-
-