Constructor and Description |
---|
DefaultInstaller() |
Modifier and Type | Method and 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) |
public DefaultInstaller()
public void initService(ServiceLocator locator)
Service
initService
in interface Service
locator
- The service locator, must not be null
.public 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
Installer
install
in interface Installer
session
- 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–2019 The Apache Software Foundation. All rights reserved.