Package org.eclipse.aether.internal.impl
Class DefaultInstaller
- java.lang.Object
-
- org.eclipse.aether.internal.impl.DefaultInstaller
-
- All Implemented Interfaces:
Installer,org.eclipse.aether.spi.locator.Service
@Singleton @Named public class DefaultInstaller extends java.lang.Object implements Installer, org.eclipse.aether.spi.locator.Service
-
-
Constructor Summary
Constructors Constructor Description DefaultInstaller()Deprecated.DefaultInstaller(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, java.util.Set<MetadataGeneratorFactory> metadataFactories, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultInstalleraddMetadataGeneratorFactory(MetadataGeneratorFactory factory)voidinitService(org.eclipse.aether.spi.locator.ServiceLocator locator)org.eclipse.aether.installation.InstallResultinstall(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.installation.InstallRequest request)Installs a collection of artifacts and their accompanying metadata to the local repository.DefaultInstallersetFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor)DefaultInstallersetMetadataGeneratorFactories(java.util.Collection<MetadataGeneratorFactory> metadataFactories)DefaultInstallersetRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)DefaultInstallersetSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
-
-
-
Constructor Detail
-
DefaultInstaller
@Deprecated public DefaultInstaller()
Deprecated.
-
DefaultInstaller
@Inject public DefaultInstaller(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, java.util.Set<MetadataGeneratorFactory> metadataFactories, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
-
-
Method Detail
-
initService
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
- Specified by:
initServicein interfaceorg.eclipse.aether.spi.locator.Service
-
setFileProcessor
public DefaultInstaller setFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor)
-
setRepositoryEventDispatcher
public DefaultInstaller setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
-
addMetadataGeneratorFactory
public DefaultInstaller addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
-
setMetadataGeneratorFactories
public DefaultInstaller setMetadataGeneratorFactories(java.util.Collection<MetadataGeneratorFactory> metadataFactories)
-
setSyncContextFactory
public DefaultInstaller setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
-
install
public org.eclipse.aether.installation.InstallResult install(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.installation.InstallRequest request) throws org.eclipse.aether.installation.InstallationException
Description copied from interface:InstallerInstalls a collection of artifacts and their accompanying metadata to the local repository.- Specified by:
installin interfaceInstaller- Parameters:
session- The repository session, must not benull.request- The installation request, must not benull.- Returns:
- The installation result, never
null. - Throws:
org.eclipse.aether.installation.InstallationException- If any artifact/metadata from the request could not be installed.- See Also:
RepositorySystem.install(RepositorySystemSession, InstallRequest),MetadataGeneratorFactory.newInstance(RepositorySystemSession, InstallRequest)
-
-