Interface WagonProvider

  • All Known Implementing Classes:
    PlexusWagonProvider

    public interface WagonProvider
    A component to acquire and release wagon instances for uploads/downloads.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.maven.wagon.Wagon lookup​(java.lang.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​(java.lang.String roleHint)
                                     throws java.lang.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:
        java.lang.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.