@Singleton @Named public class DefaultInstaller extends Object implements Installer, org.eclipse.aether.spi.locator.Service
Constructor and Description |
---|
DefaultInstaller() |
Modifier and Type | Method and Description |
---|---|
DefaultInstaller |
addMetadataGeneratorFactory(MetadataGeneratorFactory factory) |
void |
initService(org.eclipse.aether.spi.locator.ServiceLocator locator) |
org.eclipse.aether.installation.InstallResult |
install(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.installation.InstallRequest request)
Installs a collection of artifacts and their accompanying metadata to the local repository.
|
DefaultInstaller |
setFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor) |
DefaultInstaller |
setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories) |
DefaultInstaller |
setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) |
DefaultInstaller |
setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) |
public DefaultInstaller()
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
initService
in interface org.eclipse.aether.spi.locator.Service
public DefaultInstaller setFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor)
public DefaultInstaller setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
public DefaultInstaller addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
public DefaultInstaller setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories)
public DefaultInstaller setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
public org.eclipse.aether.installation.InstallResult install(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.installation.InstallRequest request) throws org.eclipse.aether.installation.InstallationException
Installer
install
in interface Installer
session
- The repository session, must not be null
.request
- The installation request, must not be null
.null
.org.eclipse.aether.installation.InstallationException
- If any artifact/metadata from the request could not be installed.RepositorySystem.install(RepositorySystemSession, InstallRequest)
,
MetadataGeneratorFactory.newInstance(RepositorySystemSession, InstallRequest)
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.