Package org.eclipse.aether.internal.impl
Class DefaultDeployer
java.lang.Object
org.eclipse.aether.internal.impl.DefaultDeployer
- All Implemented Interfaces:
Deployer
,org.eclipse.aether.spi.locator.Service
@Singleton
@Named
public class DefaultDeployer
extends Object
implements Deployer, org.eclipse.aether.spi.locator.Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultDeployer
(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, RepositoryConnectorProvider repositoryConnectorProvider, RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager, Set<MetadataGeneratorFactory> metadataFactories, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory, OfflineController offlineController) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.deployment.DeployResult
deploy
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request) Uploads a collection of artifacts and their accompanying metadata to a remote repository.void
initService
(org.eclipse.aether.spi.locator.ServiceLocator locator) setFileProcessor
(org.eclipse.aether.spi.io.FileProcessor fileProcessor) setMetadataGeneratorFactories
(Collection<MetadataGeneratorFactory> metadataFactories) setOfflineController
(OfflineController offlineController) setRemoteRepositoryManager
(RemoteRepositoryManager remoteRepositoryManager) setRepositoryConnectorProvider
(RepositoryConnectorProvider repositoryConnectorProvider) setRepositoryEventDispatcher
(RepositoryEventDispatcher repositoryEventDispatcher) setSyncContextFactory
(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) setUpdateCheckManager
(UpdateCheckManager updateCheckManager)
-
Constructor Details
-
DefaultDeployer
Deprecated. -
DefaultDeployer
@Inject public DefaultDeployer(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, RepositoryConnectorProvider repositoryConnectorProvider, RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager, Set<MetadataGeneratorFactory> metadataFactories, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory, OfflineController offlineController)
-
-
Method Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
setFileProcessor
-
setRepositoryEventDispatcher
public DefaultDeployer setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) -
setRepositoryConnectorProvider
public DefaultDeployer setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider) -
setRemoteRepositoryManager
-
setUpdateCheckManager
-
addMetadataGeneratorFactory
-
setMetadataGeneratorFactories
public DefaultDeployer setMetadataGeneratorFactories(Collection<MetadataGeneratorFactory> metadataFactories) -
setSyncContextFactory
public DefaultDeployer setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) -
setOfflineController
-
deploy
public org.eclipse.aether.deployment.DeployResult deploy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request) throws org.eclipse.aether.deployment.DeploymentException Description copied from interface:Deployer
Uploads a collection of artifacts and their accompanying metadata to a remote repository.- Specified by:
deploy
in interfaceDeployer
- Parameters:
session
- The repository session, must not benull
.request
- The deployment request, must not benull
.- Returns:
- The deployment result, never
null
. - Throws:
org.eclipse.aether.deployment.DeploymentException
- If any artifact/metadata from the request could not be deployed.- See Also:
-