@Named(value="basic") public final class BasicRepositoryConnectorFactory extends Object implements RepositoryConnectorFactory, Service
transporters
and
repository layouts
for the transfers.Constructor and Description |
---|
BasicRepositoryConnectorFactory()
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.
|
BasicRepositoryConnectorFactory |
setChecksumPolicyProvider(ChecksumPolicyProvider checksumPolicyProvider)
Sets the checksum policy provider to use for this component.
|
BasicRepositoryConnectorFactory |
setFileProcessor(FileProcessor fileProcessor)
Sets the file processor to use for this component.
|
BasicRepositoryConnectorFactory |
setLoggerFactory(LoggerFactory loggerFactory)
Sets the logger factory to use for this component.
|
BasicRepositoryConnectorFactory |
setPriority(float priority)
Sets the priority of this component.
|
BasicRepositoryConnectorFactory |
setRepositoryLayoutProvider(RepositoryLayoutProvider layoutProvider)
Sets the repository layout provider to use for this component.
|
BasicRepositoryConnectorFactory |
setTransporterProvider(TransporterProvider transporterProvider)
Sets the transporter provider to use for this component.
|
public BasicRepositoryConnectorFactory()
public void initService(ServiceLocator locator)
Service
initService
in interface Service
locator
- The service locator, must not be null
.public BasicRepositoryConnectorFactory setLoggerFactory(LoggerFactory loggerFactory)
loggerFactory
- The logger factory to use, may be null
to disable logging.null
.public BasicRepositoryConnectorFactory setTransporterProvider(TransporterProvider transporterProvider)
transporterProvider
- The transporter provider to use, must not be null
.null
.public BasicRepositoryConnectorFactory setRepositoryLayoutProvider(RepositoryLayoutProvider layoutProvider)
layoutProvider
- The repository layout provider to use, must not be null
.null
.public BasicRepositoryConnectorFactory setChecksumPolicyProvider(ChecksumPolicyProvider checksumPolicyProvider)
checksumPolicyProvider
- The checksum policy provider to use, must not be null
.null
.public BasicRepositoryConnectorFactory setFileProcessor(FileProcessor fileProcessor)
fileProcessor
- The file processor to use, must not be null
.null
.public float getPriority()
RepositoryConnectorFactory
getPriority
in interface RepositoryConnectorFactory
public BasicRepositoryConnectorFactory setPriority(float priority)
priority
- The priority.null
.public RepositoryConnector newInstance(RepositorySystemSession session, RemoteRepository repository) throws NoRepositoryConnectorException
RepositoryConnectorFactory
RemoteRepository.getProtocol()
and RemoteRepository.getContentType()
to determine whether it can
handle a repository.newInstance
in interface RepositoryConnectorFactory
session
- 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–2018 The Apache Software Foundation. All rights reserved.