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 Object
implements Installer, org.eclipse.aether.spi.locator.Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultInstaller
(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, Set<MetadataGeneratorFactory> metadataFactories, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.setFileProcessor
(org.eclipse.aether.spi.io.FileProcessor fileProcessor) setMetadataGeneratorFactories
(Collection<MetadataGeneratorFactory> metadataFactories) setRepositoryEventDispatcher
(RepositoryEventDispatcher repositoryEventDispatcher) setSyncContextFactory
(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
-
Constructor Details
-
DefaultInstaller
Deprecated. -
DefaultInstaller
@Inject public DefaultInstaller(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, Set<MetadataGeneratorFactory> metadataFactories, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
-
-
Method Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
setFileProcessor
-
setRepositoryEventDispatcher
public DefaultInstaller setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) -
addMetadataGeneratorFactory
-
setMetadataGeneratorFactories
public DefaultInstaller setMetadataGeneratorFactories(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:Installer
Installs a collection of artifacts and their accompanying metadata to the local repository.- Specified by:
install
in 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:
-