Interface WagonProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.