org.apache.maven.tools.plugin.extractor.beanshell
Class BeanshellMojoDescriptorExtractor

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

public class BeanshellMojoDescriptorExtractor
extends AbstractScriptedMojoDescriptorExtractor

Extracts Mojo descriptors from BeanShell sources.

Version:
$Id: BeanshellMojoDescriptorExtractor.java 684237 2008-08-09 12:14:13Z vsiveton $

Field Summary
 
Fields inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
ROLE
 
Constructor Summary
BeanshellMojoDescriptorExtractor()
           
 
Method Summary
protected  java.util.List extractMojoDescriptors(java.util.Map scriptFilesKeyedByBasedir, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
          Should be implemented in the sub classes.
protected  java.lang.String getScriptFileExtension()
          
 
Methods inherited from class org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor
copyScriptsToOutputDirectory, execute, extractMojoDescriptorsFromMetadata, gatherFilesByBasedir, getMetadataFileExtension
 
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

BeanshellMojoDescriptorExtractor

public BeanshellMojoDescriptorExtractor()
Method Detail

getScriptFileExtension

protected java.lang.String getScriptFileExtension()

Specified by:
getScriptFileExtension in class AbstractScriptedMojoDescriptorExtractor
Returns:
the file extension like .bsh for BeanShell.

extractMojoDescriptors

protected java.util.List extractMojoDescriptors(java.util.Map scriptFilesKeyedByBasedir,
                                                org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
                                         throws ExtractionException,
                                                org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Should be implemented in the sub classes.

Overrides:
extractMojoDescriptors in class AbstractScriptedMojoDescriptorExtractor
Parameters:
scriptFilesKeyedByBasedir - could be null
pluginDescriptor - could be null
Returns:
always null
Throws:
ExtractionException - if any
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if any


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.