@Component(role=WagonProvider.class, hint="plexus") public class PlexusWagonProvider extends Object implements WagonProvider
Constructor and Description |
---|
PlexusWagonProvider()
Creates an uninitialized wagon provider.
|
PlexusWagonProvider(org.codehaus.plexus.PlexusContainer container)
Creates a wagon provider using the specified Plexus container.
|
public PlexusWagonProvider()
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(String roleHint) throws Exception
WagonProvider
lookup
in interface WagonProvider
roleHint
- The role hint to get a wagon for, must not be null
.null
.Exception
- If no wagon could be retrieved for the specified role hint.public void release(org.apache.maven.wagon.Wagon wagon)
WagonProvider
release
in interface WagonProvider
wagon
- The wagon to release, may be null
.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.