org.apache.maven.tools.plugin.scanner
Class DefaultMojoScanner

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.tools.plugin.scanner.DefaultMojoScanner
All Implemented Interfaces:
MojoScanner, org.codehaus.plexus.logging.LogEnabled

public class DefaultMojoScanner
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MojoScanner

Author:
jdcasey

Field Summary
 
Fields inherited from interface org.apache.maven.tools.plugin.scanner.MojoScanner
ROLE
 
Constructor Summary
DefaultMojoScanner()
          Empty constructor
DefaultMojoScanner(Map<String,MojoDescriptorExtractor> extractors)
          Default constructor
 
Method Summary
protected  Set<String> getActiveExtractors()
          Gets the name of the active extractors.
 void populatePluginDescriptor(MavenProject project, PluginDescriptor pluginDescriptor)
          
 void populatePluginDescriptor(PluginToolsRequest request)
          
 void setActiveExtractors(Set<String> extractors)
          Sets the active extractors.
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMojoScanner

public DefaultMojoScanner(Map<String,MojoDescriptorExtractor> extractors)
Default constructor

Parameters:
extractors - not null

DefaultMojoScanner

public DefaultMojoScanner()
Empty constructor

Method Detail

populatePluginDescriptor

public void populatePluginDescriptor(MavenProject project,
                                     PluginDescriptor pluginDescriptor)
                              throws ExtractionException,
                                     InvalidPluginDescriptorException

Specified by:
populatePluginDescriptor in interface MojoScanner
Parameters:
project - not null
pluginDescriptor - not null
Throws:
ExtractionException - if any
InvalidPluginDescriptorException - if any

populatePluginDescriptor

public void populatePluginDescriptor(PluginToolsRequest request)
                              throws ExtractionException,
                                     InvalidPluginDescriptorException

Specified by:
populatePluginDescriptor in interface MojoScanner
Parameters:
request - not null
Throws:
ExtractionException - if any
InvalidPluginDescriptorException - if any

getActiveExtractors

protected Set<String> getActiveExtractors()
Gets the name of the active extractors.

Returns:
A Set containing the names of the active extractors.

setActiveExtractors

public void setActiveExtractors(Set<String> extractors)
Description copied from interface: MojoScanner
Sets the active extractors.

Only the specified extractors will be used, all others will be skipped.

Specified by:
setActiveExtractors in interface MojoScanner
Parameters:
extractors - The names of the active extractors. If this parameter is null, all the scanner's extractors are considered active. Set entries that are null or empty ("") will be ignored.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.