Package org.eclipse.aether.internal.impl
Class DefaultInstaller
java.lang.Object
org.eclipse.aether.internal.impl.DefaultInstaller
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initService
(ServiceLocator locator) Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.install
(RepositorySystemSession session, InstallRequest request) Installs a collection of artifacts and their accompanying metadata to the local repository.setFileProcessor
(FileProcessor fileProcessor) setMetadataGeneratorFactories
(Collection<MetadataGeneratorFactory> metadataFactories) setRepositoryEventDispatcher
(RepositoryEventDispatcher repositoryEventDispatcher) setSyncContextFactory
(SyncContextFactory syncContextFactory)
-
Constructor Details
-
DefaultInstaller
public DefaultInstaller()
-
-
Method Details
-
initService
Description copied from interface:Service
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initService
in interfaceService
- Parameters:
locator
- The service locator, must not benull
.
-
setFileProcessor
-
setRepositoryEventDispatcher
public DefaultInstaller setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) -
addMetadataGeneratorFactory
-
setMetadataGeneratorFactories
public DefaultInstaller setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories) -
setSyncContextFactory
-
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:
-