public class DefaultMojoScanner extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoScanner
ROLE
Constructor and Description |
---|
DefaultMojoScanner()
Empty constructor
|
DefaultMojoScanner(Map<String,MojoDescriptorExtractor> extractors)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
getActiveExtractors()
Gets the name of the active extractors.
|
void |
populatePluginDescriptor(PluginToolsRequest request) |
void |
setActiveExtractors(Set<String> extractors)
Sets the active extractors.
|
public DefaultMojoScanner(Map<String,MojoDescriptorExtractor> extractors)
extractors
- not nullpublic DefaultMojoScanner()
public void populatePluginDescriptor(PluginToolsRequest request) throws ExtractionException, InvalidPluginDescriptorException
populatePluginDescriptor
in interface MojoScanner
request
- not nullExtractionException
- if anyInvalidPluginDescriptorException
- if anyprotected Set<String> getActiveExtractors()
public void setActiveExtractors(Set<String> extractors)
MojoScanner
Sets the active extractors.
Only the specified extractors will be used, all others will be skipped.
setActiveExtractors
in interface MojoScanner
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–2022 The Apache Software Foundation. All rights reserved.