Class PlexusWagonProvider
- java.lang.Object
-
- org.eclipse.aether.internal.transport.wagon.PlexusWagonProvider
-
- All Implemented Interfaces:
WagonProvider
@Named("plexus") @Singleton public class PlexusWagonProvider extends java.lang.Object implements WagonProviderA wagon provider backed by a Plexus container and the wagons registered with this container.
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.PlexusContainercontainer
-
Constructor Summary
Constructors Constructor Description PlexusWagonProvider(org.codehaus.plexus.PlexusContainer container)Creates a wagon provider using the specified Plexus container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.maven.wagon.Wagonlookup(java.lang.String roleHint)Acquires a wagon instance that matches the specified role hint.voidrelease(org.apache.maven.wagon.Wagon wagon)Releases the specified wagon.
-
-
-
Method Detail
-
lookup
public org.apache.maven.wagon.Wagon lookup(java.lang.String roleHint) throws java.lang.ExceptionDescription copied from interface:WagonProviderAcquires a wagon instance that matches the specified role hint. The role hint is derived from the URI scheme, e.g. "http" or "file".- Specified by:
lookupin interfaceWagonProvider- Parameters:
roleHint- The role hint to get a wagon for, must not benull.- Returns:
- The requested wagon instance, never
null. - Throws:
java.lang.Exception- If no wagon could be retrieved for the specified role hint.
-
release
public void release(org.apache.maven.wagon.Wagon wagon)
Description copied from interface:WagonProviderReleases 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.- Specified by:
releasein interfaceWagonProvider- Parameters:
wagon- The wagon to release, may benull.
-
-