org.apache.maven.tools.plugin.extractor
Class AbstractScriptedMojoDescriptorExtractor

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor
All Implemented Interfaces:
MojoDescriptorExtractor, org.codehaus.plexus.logging.LogEnabled

public abstract class AbstractScriptedMojoDescriptorExtractor
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MojoDescriptorExtractor

Author:
jdcasey

Field Summary
 
Fields inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
ROLE
 
Constructor Summary
AbstractScriptedMojoDescriptorExtractor()
           
 
Method Summary
 java.util.List execute(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
protected abstract  java.util.List extractMojoDescriptors(java.util.Map scriptFilesKeyedByBasedir, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
protected  java.util.Map gatherScriptSourcesByBasedir(java.util.List directories, java.lang.String scriptFileExtension)
           
protected abstract  java.lang.String getScriptFileExtension()
           
 
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

AbstractScriptedMojoDescriptorExtractor

public AbstractScriptedMojoDescriptorExtractor()
Method Detail

execute

public java.util.List execute(org.apache.maven.project.MavenProject project,
                              org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
                       throws ExtractionException,
                              org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Specified by:
execute in interface MojoDescriptorExtractor
Throws:
ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException

extractMojoDescriptors

protected abstract java.util.List extractMojoDescriptors(java.util.Map scriptFilesKeyedByBasedir,
                                                         org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
                                                  throws ExtractionException,
                                                         org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Throws:
ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException

getScriptFileExtension

protected abstract java.lang.String getScriptFileExtension()

gatherScriptSourcesByBasedir

protected java.util.Map gatherScriptSourcesByBasedir(java.util.List directories,
                                                     java.lang.String scriptFileExtension)


Copyright 2005 Apache Software Foundation. All Rights Reserved.