@Named(value="plexus") @Singleton public class PlexusWagonConfigurator extends java.lang.Object implements WagonConfigurator
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PlexusWagonConfigurator.WagonComponentConfigurator |
Modifier and Type | Field and Description |
---|---|
private org.codehaus.plexus.PlexusContainer |
container |
Constructor and Description |
---|
PlexusWagonConfigurator(org.codehaus.plexus.PlexusContainer container)
Creates a wagon configurator using the specified Plexus container.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.maven.wagon.Wagon wagon,
java.lang.Object configuration)
Configures the specified wagon instance with the given configuration.
|
@Inject public PlexusWagonConfigurator(org.codehaus.plexus.PlexusContainer container)
container
- The Plexus container instance to use, must not be null
.public void configure(org.apache.maven.wagon.Wagon wagon, java.lang.Object configuration) throws java.lang.Exception
WagonConfigurator
configure
in interface WagonConfigurator
wagon
- The wagon instance to configure, must not be null
.configuration
- The configuration to apply to the wagon instance, must not be null
.java.lang.Exception
- If the configuration could not be applied to the wagon.