Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Set<java.lang.String> getActiveExtractors()
      Gets the name of the active extractors.
      void populatePluginDescriptor​(PluginToolsRequest request)
      void setActiveExtractors​(java.util.Set<java.lang.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​(java.util.Map<java.lang.String,​MojoDescriptorExtractor> extractors)
        Default constructor
        Parameters:
        extractors - not null
      • DefaultMojoScanner

        public DefaultMojoScanner()
        Empty constructor
    • Method Detail

      • getActiveExtractors

        protected java.util.Set<java.lang.String> getActiveExtractors()
        Gets the name of the active extractors.
        Returns:
        A Set containing the names of the active extractors.
      • setActiveExtractors

        public void setActiveExtractors​(java.util.Set<java.lang.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.