Package org.eclipse.aether.internal.impl
Class DefaultInstaller
java.lang.Object
org.eclipse.aether.internal.impl.DefaultInstaller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileProcessorprivate static final org.slf4j.Loggerprivate Collection<MetadataGeneratorFactory> private RepositoryEventDispatcherprivate SyncContextFactory -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DefaultInstaller(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidartifactInstalled(RepositorySystemSession session, RequestTrace trace, Artifact artifact, File dstFile, Exception exception) private voidartifactInstalling(RepositorySystemSession session, RequestTrace trace, Artifact artifact, File dstFile) private List<? extends MetadataGenerator> getMetadataGenerators(RepositorySystemSession session, InstallRequest request) voidinitService(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 voidinstall(RepositorySystemSession session, RequestTrace trace, Artifact artifact) private voidinstall(RepositorySystemSession session, RequestTrace trace, Artifact artifact, LocalRepositoryManager lrm, File srcFile, FileTransformer fileTransformer) private voidinstall(RepositorySystemSession session, RequestTrace trace, Metadata metadata) private InstallResultinstall(SyncContext syncContext, RepositorySystemSession session, InstallRequest request) private voidmetadataInstalled(RepositorySystemSession session, RequestTrace trace, Metadata metadata, File dstFile, Exception exception) private voidmetadataInstalling(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
Deprecated. -
DefaultInstaller
@Inject public DefaultInstaller(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, Set<MetadataGeneratorFactory> metadataFactories, SyncContextFactory syncContextFactory)
-
-
Method Details
-
initService
Description copied from interface:ServiceProvides 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:
initServicein 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:InstallerInstalls a collection of artifacts and their accompanying metadata to the local repository.- Specified by:
installin 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)
-