org.codehaus.groovy.maven.plugin
Class ComponentMojoSupport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.groovy.maven.plugin.MojoSupport
          extended by org.codehaus.groovy.maven.plugin.ProviderMojoSupport
              extended by org.codehaus.groovy.maven.plugin.ComponentMojoSupport
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Direct Known Subclasses:
CompilerMojoSupport, ConsoleMojo, ExecuteMojo, ShellMojo

public abstract class ComponentMojoSupport
extends ProviderMojoSupport

Support for Mojo implementations which delegate to a feature component.

Version:
$Id: ComponentMojoSupport.java 11362 2008-03-31 17:36:12Z user57 $
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.codehaus.groovy.maven.plugin.ProviderMojoSupport
pluginArtifactMap
 
Fields inherited from class org.codehaus.groovy.maven.plugin.MojoSupport
artifactFactory, artifactMetadataSource, artifactRepository, artifactResolver, log, project, remoteRepositories
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
protected ComponentMojoSupport(java.lang.String key)
           
 
Method Summary
protected  void configure(Configuration context)
           
protected  void doExecute()
           
protected  Feature feature()
           
protected  Feature feature(java.lang.String key)
           
protected abstract  void process(Component component)
           
 
Methods inherited from class org.codehaus.groovy.maven.plugin.ProviderMojoSupport
contextualize, getProviderManager, getProviderSelection, provider
 
Methods inherited from class org.codehaus.groovy.maven.plugin.MojoSupport
createArtifact, createClassPath, execute, getArtifact, getProjectClasspathElements, getUserClassspathElements, resolveArtifact
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentMojoSupport

protected ComponentMojoSupport(java.lang.String key)
Method Detail

feature

protected Feature feature()
                   throws java.lang.Exception
Throws:
java.lang.Exception

feature

protected Feature feature(java.lang.String key)
                   throws java.lang.Exception
Throws:
java.lang.Exception

doExecute

protected void doExecute()
                  throws java.lang.Exception
Specified by:
doExecute in class MojoSupport
Throws:
java.lang.Exception

configure

protected void configure(Configuration context)
                  throws java.lang.Exception
Throws:
java.lang.Exception

process

protected abstract void process(Component component)
                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006-2008 Codehaus. All Rights Reserved.