org.apache.maven.tools.plugin.scanner
Class DefaultMojoScanner
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
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
| Fields inherited from interface org.apache.maven.tools.plugin.scanner.MojoScanner |
ROLE |
| 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 |
DefaultMojoScanner
public DefaultMojoScanner(Map<String,MojoDescriptorExtractor> extractors)
- Default constructor
- Parameters:
extractors - not null
DefaultMojoScanner
public DefaultMojoScanner()
- Empty constructor
populatePluginDescriptor
public void populatePluginDescriptor(MavenProject project,
PluginDescriptor pluginDescriptor)
throws ExtractionException,
InvalidPluginDescriptorException
-
- Specified by:
populatePluginDescriptor in interface MojoScanner
- Parameters:
project - not nullpluginDescriptor - 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.