org.codehaus.mojo.hibernate3.exporter
Class GenericExporterMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.hibernate3.HibernateExporterMojo
          extended by org.codehaus.mojo.hibernate3.exporter.GenericExporterMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.mojo.hibernate3.ExporterMojo

public class GenericExporterMojo
extends HibernateExporterMojo

Generic exporter that can be controlled by a user provided template or class.

Version:
$Id: GenericExporterMojo.java 6588 2008-03-28 12:22:57Z bentmann $
Author:
Johann Reyes

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenericExporterMojo()
          Default constructor.
 
Method Summary
protected  org.hibernate.tool.hbm2x.Exporter configureExporter(org.hibernate.tool.hbm2x.Exporter exporter)
          Configures the Exporter.
protected  org.hibernate.tool.hbm2x.Exporter createExporter()
          Instantiates a org.hibernate.tool.hbm2x.Exporter object.
 java.lang.String getName()
          Returns hbmtemplate.
 
Methods inherited from class org.codehaus.mojo.hibernate3.HibernateExporterMojo
addDefaultComponent, doExecute, execute, getComponent, getComponentConfiguration, getComponentProperty, getComponentProperty, getComponentProperty, getProject
 
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
 

Constructor Detail

GenericExporterMojo

public GenericExporterMojo()
Default constructor.

Method Detail

getName

public java.lang.String getName()
Returns hbmtemplate.

Returns:
String goal's name

configureExporter

protected org.hibernate.tool.hbm2x.Exporter configureExporter(org.hibernate.tool.hbm2x.Exporter exporter)
                                                       throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: HibernateExporterMojo
Configures the Exporter.

Overrides:
configureExporter in class HibernateExporterMojo
Parameters:
exporter - 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)

createExporter

protected org.hibernate.tool.hbm2x.Exporter createExporter()
Instantiates a org.hibernate.tool.hbm2x.Exporter object.

Specified by:
createExporter in class HibernateExporterMojo
Returns:
Exporter


Copyright © 2005-2009. All Rights Reserved.