@Named(value="plexus") @Singleton public class PlexusWagonProvider extends java.lang.Object implements WagonProvider
| Modifier and Type | Field and Description |
|---|---|
private org.codehaus.plexus.PlexusContainer |
container |
| Constructor and Description |
|---|
PlexusWagonProvider(org.codehaus.plexus.PlexusContainer container)
Creates a wagon provider using the specified Plexus container.
|
| Modifier and Type | Method and 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.
|
@Inject public PlexusWagonProvider(org.codehaus.plexus.PlexusContainer container)
container - The Plexus container instance to use, must not be null.public org.apache.maven.wagon.Wagon lookup(java.lang.String roleHint)
throws java.lang.Exception
WagonProviderlookup in interface WagonProviderroleHint - The role hint to get a wagon for, must not be null.null.java.lang.Exception - If no wagon could be retrieved for the specified role hint.public void release(org.apache.maven.wagon.Wagon wagon)
WagonProviderrelease in interface WagonProviderwagon - The wagon to release, may be null.