|
||||||||||
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(java.lang.String outputDirectory,
java.lang.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 org.codehaus.mojo.hibernate3.configuration.ComponentConfiguration |
getComponentConfiguration(java.lang.String name)
Returns the ComponentConfiguration for this maven goal. |
java.lang.String |
getComponentProperty(java.lang.String key)
|
boolean |
getComponentProperty(java.lang.String key,
boolean defaultValue)
|
java.lang.String |
getComponentProperty(java.lang.String key,
java.lang.String defaultValue)
|
org.apache.maven.project.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 org.apache.maven.project.MavenProject getProject()
getProject
in interface org.codehaus.mojo.hibernate3.ExporterMojo
ExporterMojo#getProject()
public boolean getComponentProperty(java.lang.String key, boolean defaultValue)
getComponentProperty
in interface org.codehaus.mojo.hibernate3.ExporterMojo
ExporterMojo#getComponentProperty(String,boolean)
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Mojo.execute()
protected void addDefaultComponent(java.lang.String outputDirectory, java.lang.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 org.apache.maven.plugin.MojoExecutionException
exporter
- Exporter to configure
org.apache.maven.plugin.MojoExecutionException
- if there is an error configuring the exporterprotected org.codehaus.mojo.hibernate3.configuration.ComponentConfiguration getComponentConfiguration(java.lang.String name) throws org.apache.maven.plugin.MojoExecutionException
name
- Configuration task name
org.apache.maven.plugin.MojoExecutionException
- if there is an error finding the ConfigurationTaskpublic java.lang.String getComponentProperty(java.lang.String key)
getComponentProperty
in interface org.codehaus.mojo.hibernate3.ExporterMojo
ExporterMojo#getComponentProperty(String)
public java.lang.String getComponentProperty(java.lang.String key, java.lang.String defaultValue)
getComponentProperty
in interface org.codehaus.mojo.hibernate3.ExporterMojo
ExporterMojo#getComponentProperty(String,String)
protected abstract org.hibernate.tool.hbm2x.Exporter createExporter()
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.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 |