|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.connector.wagon.WagonRepositoryConnectorFactory
@Component(role=RepositoryConnectorFactory.class,
hint="wagon")
public class WagonRepositoryConnectorFactoryA repository connector factory that uses Maven Wagon for the transfers.
| Constructor Summary | |
|---|---|
WagonRepositoryConnectorFactory()
|
|
WagonRepositoryConnectorFactory(Logger logger,
FileProcessor fileProcessor,
WagonProvider wagonProvider,
WagonConfigurator wagonConfigurator)
|
|
| Method Summary | |
|---|---|
int |
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 |
setLogger(Logger logger)
Sets the logger to use for this component. |
WagonRepositoryConnectorFactory |
setPriority(int 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WagonRepositoryConnectorFactory()
public WagonRepositoryConnectorFactory(Logger logger,
FileProcessor fileProcessor,
WagonProvider wagonProvider,
WagonConfigurator wagonConfigurator)
| Method Detail |
|---|
public void initService(ServiceLocator locator)
Service
initService in interface Servicelocator - The service locator, must not be null.public WagonRepositoryConnectorFactory setLogger(Logger logger)
logger - The logger 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 int getPriority()
RepositoryConnectorFactory
getPriority in interface RepositoryConnectorFactorypublic WagonRepositoryConnectorFactory setPriority(int 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||