Class WagonTransporterFactory
java.lang.Object
org.eclipse.aether.transport.wagon.WagonTransporterFactory
- All Implemented Interfaces:
org.eclipse.aether.spi.connector.transport.TransporterFactory
,org.eclipse.aether.spi.locator.Service
@Named("wagon")
public final class WagonTransporterFactory
extends Object
implements org.eclipse.aether.spi.connector.transport.TransporterFactory, org.eclipse.aether.spi.locator.Service
A transporter factory using Apache Maven Wagon. Note
that this factory merely serves as an adapter to the Wagon API and by itself does not provide any transport services
unless one or more wagon implementations are registered with the
WagonProvider
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeprecated.WagonTransporterFactory
(WagonProvider wagonProvider, WagonConfigurator wagonConfigurator) -
Method Summary
Modifier and TypeMethodDescriptionfloat
void
initService
(org.eclipse.aether.spi.locator.ServiceLocator locator) org.eclipse.aether.spi.connector.transport.Transporter
newInstance
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository) setPriority
(float priority) Sets the priority of this component.setWagonConfigurator
(WagonConfigurator wagonConfigurator) Sets the wagon configurator to use to apply provider-specific configuration to wagon instances.setWagonProvider
(WagonProvider wagonProvider) Sets the wagon provider to use to acquire and release wagon instances.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
WagonTransporterFactory
Deprecated.Creates an (uninitialized) instance of this transporter factory. Note: In case of manual instantiation by clients, the new factory needs to be configured via its various mutators before first use or runtime errors will occur. -
WagonTransporterFactory
@Inject public WagonTransporterFactory(WagonProvider wagonProvider, WagonConfigurator wagonConfigurator)
-
-
Method Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
setWagonProvider
Sets the wagon provider to use to acquire and release wagon instances.- Parameters:
wagonProvider
- The wagon provider to use, may benull
.- Returns:
- This factory for chaining, never
null
.
-
setWagonConfigurator
Sets the wagon configurator to use to apply provider-specific configuration to wagon instances.- Parameters:
wagonConfigurator
- The wagon configurator to use, may benull
.- Returns:
- This factory for chaining, never
null
.
-
getPriority
- Specified by:
getPriority
in interfaceorg.eclipse.aether.spi.connector.transport.TransporterFactory
-
setPriority
Sets the priority of this component.- Parameters:
priority
- The priority.- Returns:
- This component for chaining, never
null
.
-
newInstance
public org.eclipse.aether.spi.connector.transport.Transporter newInstance(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository) throws org.eclipse.aether.transfer.NoTransporterException - Specified by:
newInstance
in interfaceorg.eclipse.aether.spi.connector.transport.TransporterFactory
- Throws:
org.eclipse.aether.transfer.NoTransporterException
-