| Constructor and Description |
|---|
DefaultInstaller() |
| Modifier and Type | Method and 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) |
public DefaultInstaller()
public void initService(ServiceLocator locator)
initService in interface Servicepublic DefaultInstaller setFileProcessor(FileProcessor fileProcessor)
public DefaultInstaller setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
public DefaultInstaller addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
public DefaultInstaller setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories)
public DefaultInstaller setSyncContextFactory(SyncContextFactory syncContextFactory)
public InstallResult install(RepositorySystemSession session, InstallRequest request) throws InstallationException
Installerinstall in interface Installersession - The repository session, must not be null.request - The installation request, must not be null.null.InstallationException - If any artifact/metadata from the request could not be installed.RepositorySystem.install(RepositorySystemSession, InstallRequest),
MetadataGeneratorFactory.newInstance(RepositorySystemSession, InstallRequest)Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.