org.apache.maven.plugin.loader
Class DefaultPluginLoader

java.lang.Object
  extended by org.apache.maven.plugin.loader.DefaultPluginLoader
All Implemented Interfaces:
PluginLoader, org.codehaus.plexus.logging.LogEnabled

@Component(role=PluginLoader.class)
public class DefaultPluginLoader
extends java.lang.Object
implements PluginLoader, org.codehaus.plexus.logging.LogEnabled

Responsible for loading plugins, reports, and any components contained therein. Will resolve plugin versions and plugin prefixes as necessary for plugin resolution.

Author:
jdcasey

Constructor Summary
DefaultPluginLoader()
           
 
Method Summary
 void enableLogging(org.codehaus.plexus.logging.Logger logger)
           
 PluginDescriptor loadPlugin(MojoBinding mojoBinding, MavenProject project, MavenSession session)
          Load the PluginDescriptor instance for the plugin implied by the specified MojoBinding, using the project for ArtifactRepository and other supplemental plugin information as necessary.
 PluginDescriptor loadPlugin(Plugin plugin, MavenProject project, MavenSession session)
          Load the PluginDescriptor instance for the specified plugin, using the project for the ArtifactRepository and other supplemental plugin information as necessary.
 PluginDescriptor loadReportPlugin(MojoBinding mojoBinding, MavenProject project, MavenSession session)
          Load the PluginDescriptor instance for the report plugin implied by the specified MojoBinding, using the project for ArtifactRepository and other supplemental report/plugin information as necessary.
 PluginDescriptor loadReportPlugin(ReportPlugin plugin, MavenProject project, MavenSession session)
          Load the PluginDescriptor instance for the specified report plugin, using the project for the ArtifactRepository and other supplemental report/plugin information as necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPluginLoader

public DefaultPluginLoader()
Method Detail

loadPlugin

public PluginDescriptor loadPlugin(MojoBinding mojoBinding,
                                   MavenProject project,
                                   MavenSession session)
                            throws PluginLoaderException
Load the PluginDescriptor instance for the plugin implied by the specified MojoBinding, using the project for ArtifactRepository and other supplemental plugin information as necessary.

Specified by:
loadPlugin in interface PluginLoader
Throws:
PluginLoaderException

loadPlugin

public PluginDescriptor loadPlugin(Plugin plugin,
                                   MavenProject project,
                                   MavenSession session)
                            throws PluginLoaderException
Load the PluginDescriptor instance for the specified plugin, using the project for the ArtifactRepository and other supplemental plugin information as necessary.

Specified by:
loadPlugin in interface PluginLoader
Throws:
PluginLoaderException

enableLogging

public void enableLogging(org.codehaus.plexus.logging.Logger logger)
Specified by:
enableLogging in interface org.codehaus.plexus.logging.LogEnabled

loadReportPlugin

public PluginDescriptor loadReportPlugin(MojoBinding mojoBinding,
                                         MavenProject project,
                                         MavenSession session)
                                  throws PluginLoaderException
Load the PluginDescriptor instance for the report plugin implied by the specified MojoBinding, using the project for ArtifactRepository and other supplemental report/plugin information as necessary.

Specified by:
loadReportPlugin in interface PluginLoader
Throws:
PluginLoaderException

loadReportPlugin

public PluginDescriptor loadReportPlugin(ReportPlugin plugin,
                                         MavenProject project,
                                         MavenSession session)
                                  throws PluginLoaderException
Load the PluginDescriptor instance for the specified report plugin, using the project for the ArtifactRepository and other supplemental report/plugin information as necessary.

Specified by:
loadReportPlugin in interface PluginLoader
Throws:
PluginLoaderException


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.