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 java.lang.Object implements Deployer, org.eclipse.aether.spi.locator.Service
-
-
Constructor Summary
Constructors Constructor Description DefaultDeployer()
Deprecated.DefaultDeployer(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, RepositoryConnectorProvider repositoryConnectorProvider, RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager, java.util.Set<MetadataGeneratorFactory> metadataFactories, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory, OfflineController offlineController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultDeployer
addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
org.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)
DefaultDeployer
setFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor)
DefaultDeployer
setMetadataGeneratorFactories(java.util.Collection<MetadataGeneratorFactory> metadataFactories)
DefaultDeployer
setOfflineController(OfflineController offlineController)
DefaultDeployer
setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager)
DefaultDeployer
setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider)
DefaultDeployer
setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
DefaultDeployer
setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
DefaultDeployer
setUpdateCheckManager(UpdateCheckManager updateCheckManager)
-
-
-
Constructor Detail
-
DefaultDeployer
@Deprecated public DefaultDeployer()
Deprecated.
-
DefaultDeployer
@Inject public DefaultDeployer(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, RepositoryConnectorProvider repositoryConnectorProvider, RemoteRepositoryManager remoteRepositoryManager, UpdateCheckManager updateCheckManager, java.util.Set<MetadataGeneratorFactory> metadataFactories, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory, OfflineController offlineController)
-
-
Method Detail
-
initService
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
setFileProcessor
public DefaultDeployer setFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor)
-
setRepositoryEventDispatcher
public DefaultDeployer setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
-
setRepositoryConnectorProvider
public DefaultDeployer setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider)
-
setRemoteRepositoryManager
public DefaultDeployer setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager)
-
setUpdateCheckManager
public DefaultDeployer setUpdateCheckManager(UpdateCheckManager updateCheckManager)
-
addMetadataGeneratorFactory
public DefaultDeployer addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
-
setMetadataGeneratorFactories
public DefaultDeployer setMetadataGeneratorFactories(java.util.Collection<MetadataGeneratorFactory> metadataFactories)
-
setSyncContextFactory
public DefaultDeployer setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory)
-
setOfflineController
public DefaultDeployer setOfflineController(OfflineController offlineController)
-
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:
RepositorySystem.deploy(RepositorySystemSession, DeployRequest)
,MetadataGeneratorFactory.newInstance(RepositorySystemSession, DeployRequest)
-
-