org.sonatype.aether.impl.internal
Class DefaultDeployer
java.lang.Object
org.sonatype.aether.impl.internal.DefaultDeployer
- All Implemented Interfaces:
- Deployer, Service
@Component(role=Deployer.class)
public class DefaultDeployer
- extends Object
- implements Deployer, Service
- Author:
- Benjamin Bentmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDeployer
public DefaultDeployer()
DefaultDeployer
public DefaultDeployer(Logger logger,
FileProcessor fileProcessor,
RepositoryEventDispatcher repositoryEventDispatcher,
RemoteRepositoryManager remoteRepositoryManager,
UpdateCheckManager updateCheckManager,
List<MetadataGeneratorFactory> metadataFactories,
SyncContextFactory syncContextFactory)
initService
public void initService(ServiceLocator locator)
- 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 interface Service
- Parameters:
locator
- The service locator, must not be null
.
setLogger
public DefaultDeployer setLogger(Logger logger)
setFileProcessor
public DefaultDeployer setFileProcessor(FileProcessor fileProcessor)
setRepositoryEventDispatcher
public DefaultDeployer setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
setRemoteRepositoryManager
public DefaultDeployer setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager)
setUpdateCheckManager
public DefaultDeployer setUpdateCheckManager(UpdateCheckManager updateCheckManager)
addMetadataGeneratorFactory
public DefaultDeployer addMetadataGeneratorFactory(MetadataGeneratorFactory factory)
setMetadataFactories
public DefaultDeployer setMetadataFactories(List<MetadataGeneratorFactory> metadataFactories)
setSyncContextFactory
public DefaultDeployer setSyncContextFactory(SyncContextFactory syncContextFactory)
deploy
public DeployResult deploy(RepositorySystemSession session,
DeployRequest request)
throws DeploymentException
- Description copied from interface:
Deployer
- Uploads a collection of artifacts and their accompanying metadata to a remote repository.
- Specified by:
deploy
in interface Deployer
- Parameters:
session
- The repository session, must not be null
.request
- The deployment request, must not be null
.
- Returns:
- The deployment result, never
null
.
- Throws:
DeploymentException
- If any artifact/metadata from the request could not be deployed.- See Also:
RepositorySystem.deploy(RepositorySystemSession, DeployRequest)
Copyright © 2010-2013. All Rights Reserved.