| Constructor and Description |
|---|
DefaultInstaller() |
DefaultInstaller(Logger logger,
FileProcessor fileProcessor,
RepositoryEventDispatcher repositoryEventDispatcher,
List<MetadataGeneratorFactory> metadataFactories,
SyncContextFactory syncContextFactory) |
| 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 |
setLogger(Logger logger) |
DefaultInstaller |
setMetadataFactories(List<MetadataGeneratorFactory> metadataFactories) |
DefaultInstaller |
setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) |
DefaultInstaller |
setSyncContextFactory(SyncContextFactory syncContextFactory) |
public DefaultInstaller()
public DefaultInstaller(Logger logger, FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, List<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory)
public void initService(ServiceLocator locator)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public DefaultInstaller setLogger(Logger logger)
public DefaultInstaller setFileProcessor(FileProcessor fileProcessor)
public DefaultInstaller setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
public DefaultInstaller addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
public DefaultInstaller setMetadataFactories(List<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)Copyright © 2010-2015 Sonatype, Inc.. All Rights Reserved.