@Named @Component(role=RepositoryConnectorFactory.class, hint="wagon") public final class WagonRepositoryConnectorFactory extends Object implements RepositoryConnectorFactory, Service
| Constructor and Description |
|---|
WagonRepositoryConnectorFactory()
Creates an (uninitialized) instance of this connector factory.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getPriority()
The priority of this factory.
|
void |
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
RepositoryConnector |
newInstance(RepositorySystemSession session,
RemoteRepository repository)
Tries to create a repository connector for the specified remote repository.
|
WagonRepositoryConnectorFactory |
setFileProcessor(FileProcessor fileProcessor)
Sets the file processor to use for this component.
|
WagonRepositoryConnectorFactory |
setLoggerFactory(LoggerFactory loggerFactory)
Sets the logger factory to use for this component.
|
WagonRepositoryConnectorFactory |
setPriority(float priority)
Sets the priority of this component.
|
WagonRepositoryConnectorFactory |
setWagonConfigurator(WagonConfigurator wagonConfigurator)
Sets the wagon configurator to use to apply provider-specific configuration to wagon instances.
|
WagonRepositoryConnectorFactory |
setWagonProvider(WagonProvider wagonProvider)
Sets the wagon provider to use to acquire and release wagon instances.
|
public WagonRepositoryConnectorFactory()
public void initService(ServiceLocator locator)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public WagonRepositoryConnectorFactory setLoggerFactory(LoggerFactory loggerFactory)
loggerFactory - The logger factory to use, may be null to disable logging.null.public WagonRepositoryConnectorFactory setFileProcessor(FileProcessor fileProcessor)
fileProcessor - The file processor to use, must not be null.null.public WagonRepositoryConnectorFactory setWagonProvider(WagonProvider wagonProvider)
wagonProvider - The wagon provider to use, may be null.null.public WagonRepositoryConnectorFactory setWagonConfigurator(WagonConfigurator wagonConfigurator)
wagonConfigurator - The wagon configurator to use, may be null.null.public float getPriority()
RepositoryConnectorFactorygetPriority in interface RepositoryConnectorFactorypublic WagonRepositoryConnectorFactory setPriority(float priority)
priority - The priority.null.public RepositoryConnector newInstance(RepositorySystemSession session, RemoteRepository repository) throws NoRepositoryConnectorException
RepositoryConnectorFactoryRemoteRepository.getProtocol() and RemoteRepository.getContentType() to determine whether it can
handle a repository.newInstance in interface RepositoryConnectorFactorysession - The repository system session from which to configure the connector, must not be null. In
particular, a connector must notify any RepositorySystemSession.getTransferListener() set for
the session and should obey the timeouts configured for the session.repository - The remote repository to create a connector for, must not be null.null.NoRepositoryConnectorException - If the factory cannot create a connector for the specified remote
repository.Copyright © 2010-2013 The Eclipse Foundation. All Rights Reserved.