org.apache.tiles.autotag.plugin
Class AbstractGenerateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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) $
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
AbstractGenerateMojo
public AbstractGenerateMojo()
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.