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
-
Field Summary
Fields inherited from interface org.apache.maven.tools.plugin.scanner.MojoScanner
ROLE
-
Constructor Summary
ConstructorDescriptionEmpty constructorDefaultMojoScanner(Map<String,MojoDescriptorExtractor> extractors)
Default constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the active extractors.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
-
Constructor Details
-
DefaultMojoScanner
Default constructor- Parameters:
extractors
- not null
-
DefaultMojoScanner
public DefaultMojoScanner()Empty constructor
-
-
Method Details
-
populatePluginDescriptor
public void populatePluginDescriptor(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException- Specified by:
populatePluginDescriptor
in interfaceMojoScanner
- Parameters:
request
- not null- Throws:
ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if any
-
getActiveExtractors
Gets the name of the active extractors.- Returns:
- A Set containing the names of the active extractors.
-
setActiveExtractors
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 interfaceMojoScanner
- Parameters:
extractors
- The names of the active extractors. If this parameter isnull
, all the scanner's extractors are considered active. Set entries that arenull
or empty ("") will be ignored.
-