Package org.eclipse.aether.internal.impl
Class DefaultInstaller
java.lang.Object
org.eclipse.aether.internal.impl.DefaultInstaller
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DefaultInstaller(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitService(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
Deprecated. -
DefaultInstaller
@Inject public DefaultInstaller(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory)
-
-
Method Details
-
initService
Description copied from interface:ServiceProvides 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:
initServicein 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: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:
-