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
@Named public class DefaultDeployer extends java.lang.Object implements Deployer, org.eclipse.aether.spi.locator.Service
-
-
Constructor Summary
Constructors Constructor Description DefaultDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultDeployeraddMetadataGeneratorFactory(MetadataGeneratorFactory factory)org.eclipse.aether.deployment.DeployResultdeploy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request)Uploads a collection of artifacts and their accompanying metadata to a remote repository.voidinitService(org.eclipse.aether.spi.locator.ServiceLocator locator)DefaultDeployersetFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor)DefaultDeployersetMetadataGeneratorFactories(java.util.Collection<MetadataGeneratorFactory> metadataFactories)DefaultDeployersetOfflineController(OfflineController offlineController)DefaultDeployersetRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager)DefaultDeployersetRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider)DefaultDeployersetRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)DefaultDeployersetSyncContextFactory(SyncContextFactory syncContextFactory)DefaultDeployersetUpdateCheckManager(UpdateCheckManager updateCheckManager)
-
-
-
Constructor Detail
-
DefaultDeployer
public DefaultDeployer()
-
-
Method Detail
-
initService
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
- Specified by:
initServicein 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(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:DeployerUploads a collection of artifacts and their accompanying metadata to a remote repository.- Specified by:
deployin 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)
-
-