org.domdrides.maven.plugin
Class AbstractGeneratorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.domdrides.maven.plugin.AbstractGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateEntityMojo, GenerateRepositoryMojo

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


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractGeneratorMojo()
           
 
Method Summary
protected  org.apache.velocity.app.VelocityEngine createVelocityEngine()
           
protected  void generateSourceFile(String templateName, org.apache.velocity.VelocityContext context, String className)
           
 String getBasePackage()
           
protected  Class getClass(String name)
           
 List<String> getClasspathElements()
           
protected  String getEntityPackage()
           
protected  String getProjectVersion()
           
protected  String getRepositoryPackage()
           
 File getSrcDirectory()
           
 void setBasePackage(String basePackage)
           
 void setClasspathElements(List<String> classpathElements)
           
 void setSrcDirectory(File srcDirectory)
           
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Constructor Detail

AbstractGeneratorMojo

public AbstractGeneratorMojo()
Method Detail

getBasePackage

public String getBasePackage()

setBasePackage

public void setBasePackage(String basePackage)

getClasspathElements

public List<String> getClasspathElements()

setClasspathElements

public void setClasspathElements(List<String> classpathElements)

getSrcDirectory

public File getSrcDirectory()

setSrcDirectory

public void setSrcDirectory(File srcDirectory)

createVelocityEngine

protected org.apache.velocity.app.VelocityEngine createVelocityEngine()
                                                               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

generateSourceFile

protected void generateSourceFile(String templateName,
                                  org.apache.velocity.VelocityContext context,
                                  String className)
                           throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getClass

protected Class getClass(String name)
                  throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getProjectVersion

protected String getProjectVersion()

getEntityPackage

protected String getEntityPackage()

getRepositoryPackage

protected String getRepositoryPackage()


Copyright © 2013. All Rights Reserved.