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 Details

  • 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

      public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
      Specified by:
      initService in interface org.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 be null.
      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 be null.
      Returns:
      This factory for chaining, never null.
    • getPriority

      public float getPriority()
      Specified by:
      getPriority in interface org.eclipse.aether.spi.connector.transport.TransporterFactory
    • setPriority

      public WagonTransporterFactory setPriority(float priority)
      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 interface org.eclipse.aether.spi.connector.transport.TransporterFactory
      Throws:
      org.eclipse.aether.transfer.NoTransporterException