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
ConstructorsConstructorDescriptionDeprecated.DefaultRepositoryLayoutProvider(Set<RepositoryLayoutFactory> layoutFactories) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitService(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:ServiceProvides 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:
initServicein 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:RepositoryLayoutProviderTries to retrieve a repository layout for the specified remote repository.- Specified by:
newRepositoryLayoutin 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.
-