org.apache.tiles.autotag.plugin
Class AbstractGenerateMojo

Package class diagram package AbstractGenerateMojo
java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.tiles.autotag.plugin.AbstractGenerateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateFreemarkerMojo, GenerateJspMojo, GenerateVelocityMojo

public abstract class AbstractGenerateMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract class to generate boilerplate code starting from template model classes.

Version:
$Rev: 1349964 $ $Date: 2012-06-13 13:18:51 -0400 (Wed, 13 Jun 2012) $

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractGenerateMojo()
           
 
Method Summary
protected abstract  TemplateGeneratorFactory createTemplateGeneratorFactory(org.apache.velocity.app.VelocityEngine velocityEngine)
          Creates a template generator factory.
 void execute()
          
protected abstract  Map<String,String> getParameters()
          Returns the map of parameters.
protected abstract  String getRuntimeClass()
          Name of the Runtime class.
 
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

AbstractGenerateMojo

public AbstractGenerateMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException

Throws:
org.apache.maven.plugin.MojoExecutionException

createTemplateGeneratorFactory

protected abstract TemplateGeneratorFactory createTemplateGeneratorFactory(org.apache.velocity.app.VelocityEngine velocityEngine)
Creates a template generator factory.

Parameters:
velocityEngine - The Velocity engine.
Returns:
The template generator factory.

getParameters

protected abstract Map<String,String> getParameters()
Returns the map of parameters.

Returns:
The parameters.

getRuntimeClass

protected abstract String getRuntimeClass()
Name of the Runtime class.

Returns:
The name of the Runtime class.


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.