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

@Component(role=MojoDescriptorExtractor.class,
           hint="bsh")
public class BeanshellMojoDescriptorExtractor
extends AbstractScriptedMojoDescriptorExtractor
implements MojoDescriptorExtractor

Extracts Mojo descriptors from BeanShell sources.

Version:
$Id: BeanshellMojoDescriptorExtractor.java 1338290 2012-05-14 16:54:01Z olamy $

Field Summary
 
Fields inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
ROLE
 
Constructor Summary
BeanshellMojoDescriptorExtractor()
           
 
Method Summary
protected  List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptors(Map<String,Set<File>> scriptFilesKeyedByBasedir, PluginToolsRequest request)
          Should be implemented in the sub classes.
protected  String getScriptFileExtension(PluginToolsRequest request)
          
 
Methods inherited from class org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor
copyScriptsToOutputDirectory, execute, 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
 
Methods inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
execute, execute
 

Constructor Detail

BeanshellMojoDescriptorExtractor

public BeanshellMojoDescriptorExtractor()
Method Detail

getScriptFileExtension

protected String getScriptFileExtension(PluginToolsRequest request)

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

extractMojoDescriptors

protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptors(Map<String,Set<File>> scriptFilesKeyedByBasedir,
                                                                                         PluginToolsRequest request)
                                                                                  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
request - The plugin request, never null.
Returns:
always null
Throws:
ExtractionException - if any
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if any


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.