org.appfuse.mojo.exporter
Class AppFuseGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.appfuse.mojo.HibernateExporterMojo
org.appfuse.mojo.exporter.AppFuseGeneratorMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.mojo.hibernate3.ExporterMojo
- Direct Known Subclasses:
- AppFuseGenerateCoreMojo, AppFuseGenerateWebMojo
public class AppFuseGeneratorMojo
- extends HibernateExporterMojo
Generates Java classes from set of annotated POJOs. Use -DdisableInstallation to prevent installation.
If using this goal in a "core" module or project, only DAOs and Managers will be created. For "web"
modules, the same principle applies.
- Author:
- Matt Raible
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
protected org.hibernate.tool.hbm2x.Exporter |
configureExporter(org.hibernate.tool.hbm2x.Exporter exp)
Configures the Exporter. |
protected org.hibernate.tool.hbm2x.Exporter |
createExporter()
Instantiates a org.appfuse.tool.AppFuseExporter object. |
protected void |
doExecute()
Executes the plugin in an isolated classloader. |
void |
execute()
|
String |
getName()
Returns gen. |
protected void |
setGenerateCoreOnly(boolean generateCoreOnly)
|
protected void |
setGenerateWebOnly(boolean generateWebOnly)
|
| 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 |
getLog, setLog |
AppFuseGeneratorMojo
public AppFuseGeneratorMojo()
- Default constructor.
getName
public String getName()
- Returns gen.
- Returns:
- String goal's name
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class HibernateExporterMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException- See Also:
Mojo.execute()
configureExporter
protected org.hibernate.tool.hbm2x.Exporter configureExporter(org.hibernate.tool.hbm2x.Exporter exp)
throws org.apache.maven.plugin.MojoExecutionException
- Description copied from class:
HibernateExporterMojo
- Configures the Exporter.
- Overrides:
configureExporter in class HibernateExporterMojo
- Parameters:
exp - Exporter to configure
- Returns:
- Exporter
- Throws:
org.apache.maven.plugin.MojoExecutionException - if there is an error configuring the exporter- See Also:
HibernateExporterMojo.configureExporter(org.hibernate.tool.hbm2x.Exporter)
doExecute
protected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
- Executes the plugin in an isolated classloader.
- Overrides:
doExecute in class HibernateExporterMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException - When there is an erro executing the plugin
createExporter
protected org.hibernate.tool.hbm2x.Exporter createExporter()
- Instantiates a org.appfuse.tool.AppFuseExporter object.
- Specified by:
createExporter in class HibernateExporterMojo
- Returns:
- POJOExporter
setGenerateCoreOnly
protected void setGenerateCoreOnly(boolean generateCoreOnly)
setGenerateWebOnly
protected void setGenerateWebOnly(boolean generateWebOnly)
Copyright © 2003-2012. All Rights Reserved.