Package org.eclipse.aether.internal.impl
Class DefaultInstaller
java.lang.Object
org.eclipse.aether.internal.impl.DefaultInstaller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileProcessor
private static final org.slf4j.Logger
private Collection<MetadataGeneratorFactory>
private RepositoryEventDispatcher
private SyncContextFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultInstaller
(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
artifactInstalled
(RepositorySystemSession session, RequestTrace trace, Artifact artifact, File dstFile, Exception exception) private void
artifactInstalling
(RepositorySystemSession session, RequestTrace trace, Artifact artifact, File dstFile) private 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.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, 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, File dstFile, Exception exception) private void
metadataInstalling
(RepositorySystemSession session, RequestTrace trace, Metadata metadata, File dstFile) setFileProcessor
(FileProcessor fileProcessor) setMetadataGeneratorFactories
(Collection<MetadataGeneratorFactory> metadataFactories) setRepositoryEventDispatcher
(RepositoryEventDispatcher repositoryEventDispatcher) setSyncContextFactory
(SyncContextFactory syncContextFactory)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
fileProcessor
-
repositoryEventDispatcher
-
metadataFactories
-
syncContextFactory
-
-
Constructor Details
-
DefaultInstaller
public DefaultInstaller() -
DefaultInstaller
@Inject DefaultInstaller(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory)
-
-
Method Details
-
initService
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
-
setRepositoryEventDispatcher
public DefaultInstaller setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) -
addMetadataGeneratorFactory
-
setMetadataGeneratorFactories
public DefaultInstaller setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories) -
setSyncContextFactory
-
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:
-
install
private InstallResult install(SyncContext syncContext, RepositorySystemSession session, InstallRequest request) throws InstallationException - Throws:
InstallationException
-
getMetadataGenerators
private 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, 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, File dstFile) -
artifactInstalled
private void artifactInstalled(RepositorySystemSession session, RequestTrace trace, Artifact artifact, File dstFile, Exception exception) -
metadataInstalling
private void metadataInstalling(RepositorySystemSession session, RequestTrace trace, Metadata metadata, File dstFile) -
metadataInstalled
private void metadataInstalled(RepositorySystemSession session, RequestTrace trace, Metadata metadata, File dstFile, Exception exception)
-