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 DefaultInstaller
addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
void
initService(ServiceLocator locator)
InstallResult
install(RepositorySystemSession session, InstallRequest request)
Installs a collection of artifacts and their accompanying metadata to the local repository.DefaultInstaller
setFileProcessor(FileProcessor fileProcessor)
DefaultInstaller
setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories)
DefaultInstaller
setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
DefaultInstaller
setSyncContextFactory(SyncContextFactory syncContextFactory)
-
-
-
Constructor Detail
-
DefaultInstaller
public DefaultInstaller()
-
-
Method Detail
-
initService
public void initService(ServiceLocator locator)
- Specified by:
initService
in 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: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:
InstallationException
- If any artifact/metadata from the request could not be installed.- See Also:
RepositorySystem.install(RepositorySystemSession, InstallRequest)
,MetadataGeneratorFactory.newInstance(RepositorySystemSession, InstallRequest)
-
-