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 Wagon
lookup(String roleHint)
Acquires a wagon instance that matches the specified role hint.void
release(Wagon wagon)
Releases the specified wagon.
-
-
-
Method Detail
-
lookup
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 benull
.- Returns:
- The requested wagon instance, never
null
. - Throws:
Exception
- If no wagon could be retrieved for the specified role hint.
-
-