Package org.eclipse.aether.internal.impl
Class DefaultInstaller
- java.lang.Object
-
- org.eclipse.aether.internal.impl.DefaultInstaller
-
-
Constructor Summary
Constructors Constructor Description DefaultInstaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultInstalleraddMetadataGeneratorFactory(MetadataGeneratorFactory factory)voidinitService(ServiceLocator locator)InstallResultinstall(RepositorySystemSession session, InstallRequest request)Installs a collection of artifacts and their accompanying metadata to the local repository.DefaultInstallersetFileProcessor(FileProcessor fileProcessor)DefaultInstallersetMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories)DefaultInstallersetRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)DefaultInstallersetSyncContextFactory(SyncContextFactory syncContextFactory)
-
-
-
Constructor Detail
-
DefaultInstaller
public DefaultInstaller()
-
-
Method Detail
-
initService
public void initService(ServiceLocator locator)
- Specified by:
initServicein interfaceService
-
setFileProcessor
public DefaultInstaller setFileProcessor(FileProcessor fileProcessor)
-
setRepositoryEventDispatcher
public DefaultInstaller setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
-
addMetadataGeneratorFactory
public DefaultInstaller addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
-
setMetadataGeneratorFactories
public DefaultInstaller setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories)
-
setSyncContextFactory
public DefaultInstaller setSyncContextFactory(SyncContextFactory syncContextFactory)
-
install
public InstallResult install(RepositorySystemSession session, InstallRequest request) throws 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:
InstallationException- If any artifact/metadata from the request could not be installed.- See Also:
RepositorySystem.install(RepositorySystemSession, InstallRequest),MetadataGeneratorFactory.newInstance(RepositorySystemSession, InstallRequest)
-
-