org.eclipse.aether.transport.wagon

## Interface WagonProvider

- All Known Implementing Classes:
    PlexusWagonProvider

      public interface WagonProvider

  A component to acquire and release wagon instances for uploads/downloads.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.maven.wagon.Wagon` | `lookup(String roleHint)` Acquires a wagon instance that matches the specified role hint.
    `void` | `release(org.apache.maven.wagon.Wagon wagon)` Releases the specified wagon.

- - ### Method Detail

    - #### lookup

          org.apache.maven.wagon.Wagon lookup(String roleHint)
                                              throws Exception

      Acquires a wagon instance that matches the specified role hint. The role hint is derived from the URI scheme, e.g. "http" or "file".
      Parameters:
        `roleHint` - The role hint to get a wagon for, must not be `null`.
      Returns:
        The requested wagon instance, never `null`.
      Throws:
        `Exception` - If no wagon could be retrieved for the specified role hint.

    - #### release

          void release(org.apache.maven.wagon.Wagon wagon)

      Releases the specified wagon. A wagon provider may either free any resources allocated for the wagon instance or return the instance back to a pool for future use.
      Parameters:
        `wagon` - The wagon to release, may be `null`.

Copyright © 2010-2013 The Eclipse Foundation. All Rights Reserved.