Package org.eclipse.aether.internal.impl
Class DefaultInstaller
- java.lang.Object
-
- org.eclipse.aether.internal.impl.DefaultInstaller
-
-
Field Summary
Fields Modifier and Type Field Description private FileProcessor
fileProcessor
private static org.slf4j.Logger
LOGGER
private java.util.Collection<MetadataGeneratorFactory>
metadataFactories
private RepositoryEventDispatcher
repositoryEventDispatcher
private SyncContextFactory
syncContextFactory
-
Constructor Summary
Constructors Constructor Description DefaultInstaller()
DefaultInstaller(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, java.util.Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultInstaller
addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
private void
artifactInstalled(RepositorySystemSession session, RequestTrace trace, Artifact artifact, java.io.File dstFile, java.lang.Exception exception)
private void
artifactInstalling(RepositorySystemSession session, RequestTrace trace, Artifact artifact, java.io.File dstFile)
private java.util.List<? extends MetadataGenerator>
getMetadataGenerators(RepositorySystemSession session, InstallRequest request)
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.private void
install(RepositorySystemSession session, RequestTrace trace, Artifact artifact)
private void
install(RepositorySystemSession session, RequestTrace trace, Artifact artifact, LocalRepositoryManager lrm, java.io.File srcFile, FileTransformer fileTransformer)
private void
install(RepositorySystemSession session, RequestTrace trace, Metadata metadata)
private InstallResult
install(SyncContext syncContext, RepositorySystemSession session, InstallRequest request)
private void
metadataInstalled(RepositorySystemSession session, RequestTrace trace, Metadata metadata, java.io.File dstFile, java.lang.Exception exception)
private void
metadataInstalling(RepositorySystemSession session, RequestTrace trace, Metadata metadata, java.io.File dstFile)
DefaultInstaller
setFileProcessor(FileProcessor fileProcessor)
DefaultInstaller
setMetadataGeneratorFactories(java.util.Collection<MetadataGeneratorFactory> metadataFactories)
DefaultInstaller
setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
DefaultInstaller
setSyncContextFactory(SyncContextFactory syncContextFactory)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
fileProcessor
private FileProcessor fileProcessor
-
repositoryEventDispatcher
private RepositoryEventDispatcher repositoryEventDispatcher
-
metadataFactories
private java.util.Collection<MetadataGeneratorFactory> metadataFactories
-
syncContextFactory
private SyncContextFactory syncContextFactory
-
-
Constructor Detail
-
DefaultInstaller
public DefaultInstaller()
-
DefaultInstaller
@Inject DefaultInstaller(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, java.util.Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory)
-
-
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(java.util.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)
-
install
private InstallResult install(SyncContext syncContext, RepositorySystemSession session, InstallRequest request) throws InstallationException
- Throws:
InstallationException
-
getMetadataGenerators
private java.util.List<? extends MetadataGenerator> getMetadataGenerators(RepositorySystemSession session, InstallRequest request)
-
install
private void install(RepositorySystemSession session, RequestTrace trace, Artifact artifact) throws InstallationException
- Throws:
InstallationException
-
install
private void install(RepositorySystemSession session, RequestTrace trace, Artifact artifact, LocalRepositoryManager lrm, java.io.File srcFile, FileTransformer fileTransformer) throws InstallationException
- Throws:
InstallationException
-
install
private void install(RepositorySystemSession session, RequestTrace trace, Metadata metadata) throws InstallationException
- Throws:
InstallationException
-
artifactInstalling
private void artifactInstalling(RepositorySystemSession session, RequestTrace trace, Artifact artifact, java.io.File dstFile)
-
artifactInstalled
private void artifactInstalled(RepositorySystemSession session, RequestTrace trace, Artifact artifact, java.io.File dstFile, java.lang.Exception exception)
-
metadataInstalling
private void metadataInstalling(RepositorySystemSession session, RequestTrace trace, Metadata metadata, java.io.File dstFile)
-
metadataInstalled
private void metadataInstalled(RepositorySystemSession session, RequestTrace trace, Metadata metadata, java.io.File dstFile, java.lang.Exception exception)
-
-