|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.hibernate3.HibernateExporterMojo
public abstract class HibernateExporterMojo
Base class for the different hibernate3 goals based on the Ant tasks of hibernate tools.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
HibernateExporterMojo()
|
|
| Method Summary | |
|---|---|
protected void |
addDefaultComponent(String outputDirectory,
String implementation,
boolean jdk5)
Adds a default goal. |
protected org.hibernate.tool.hbm2x.Exporter |
configureExporter(org.hibernate.tool.hbm2x.Exporter exporter)
Configures the Exporter. |
protected abstract org.hibernate.tool.hbm2x.Exporter |
createExporter()
Gets the hibernate tool exporter based on the goal that is being called. |
protected void |
doExecute()
Executes the plugin in an isolated classloader. |
void |
execute()
|
protected Component |
getComponent()
Returns the parsed goal to the exporter. |
protected ComponentConfiguration |
getComponentConfiguration(String name)
Returns the ComponentConfiguration for this maven goal. |
String |
getComponentProperty(String key)
|
boolean |
getComponentProperty(String key,
boolean defaultValue)
|
String |
getComponentProperty(String key,
String defaultValue)
|
MavenProject |
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.codehaus.mojo.hibernate3.ExporterMojo |
|---|
getName |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Constructor Detail |
|---|
public HibernateExporterMojo()
| Method Detail |
|---|
public MavenProject getProject()
getProject in interface ExporterMojoExporterMojo.getProject()public String getComponentProperty(String key)
getComponentProperty in interface ExporterMojoExporterMojo.getComponentProperty(String)
public boolean getComponentProperty(String key,
boolean defaultValue)
getComponentProperty in interface ExporterMojoExporterMojo.getComponentProperty(String,boolean)
public void execute()
throws MojoExecutionException,
MojoFailureException
execute in interface MojoMojoExecutionException
MojoFailureExceptionMojo.execute()
protected void addDefaultComponent(String outputDirectory,
String implementation,
boolean jdk5)
outputDirectory - Default output directoryimplementation - Default configuration implementationjdk5 - Is this goal being setup for jdk15?
protected org.hibernate.tool.hbm2x.Exporter configureExporter(org.hibernate.tool.hbm2x.Exporter exporter)
throws MojoExecutionException
exporter - Exporter to configure
MojoExecutionException - if there is an error configuring the exporter
protected ComponentConfiguration getComponentConfiguration(String name)
throws MojoExecutionException
name - Configuration task name
MojoExecutionException - if there is an error finding the ConfigurationTask
public String getComponentProperty(String key,
String defaultValue)
getComponentProperty in interface ExporterMojoExporterMojo.getComponentProperty(String,String)protected abstract org.hibernate.tool.hbm2x.Exporter createExporter()
protected void doExecute()
throws MojoExecutionException
MojoExecutionException - When there is an erro executing the pluginprotected Component getComponent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||