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)
Provides the opportunity to initialize this service and to acquire other services for its operation from the 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)
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
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)
-
-