|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.appfuse.mojo.HibernateExporterMojo
public abstract class HibernateExporterMojo
Base class for the different appfuse 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 | |
|---|---|
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 org.codehaus.mojo.hibernate3.configuration.ComponentConfiguration |
getComponentConfiguration(String name)
Returns the ComponentConfiguration for this maven goal. |
Map<String,String> |
getComponentProperties()
|
String |
getComponentProperty(String key)
|
boolean |
getComponentProperty(String key,
boolean defaultValue)
|
String |
getComponentProperty(String key,
String defaultValue)
|
org.apache.maven.project.MavenProject |
getProject()
|
boolean |
isFullSource()
|
| 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 boolean isFullSource()
public String getComponentProperty(String key)
getComponentProperty in interface org.codehaus.mojo.hibernate3.ExporterMojoExporterMojo.getComponentProperty(String)
public boolean getComponentProperty(String key,
boolean defaultValue)
getComponentProperty in interface org.codehaus.mojo.hibernate3.ExporterMojoExporterMojo.getComponentProperty(String,boolean)public org.apache.maven.project.MavenProject getProject()
getProject in interface org.codehaus.mojo.hibernate3.ExporterMojoExporterMojo.getProject()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionMojo.execute()
public 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 org.apache.maven.plugin.MojoExecutionException
exporter - Exporter to configure
org.apache.maven.plugin.MojoExecutionException - if there is an error configuring the exporter
public String getComponentProperty(String key,
String defaultValue)
getComponentProperty in interface org.codehaus.mojo.hibernate3.ExporterMojoExporterMojo.getComponentProperty(String,String)
protected org.codehaus.mojo.hibernate3.configuration.ComponentConfiguration getComponentConfiguration(String name)
throws org.apache.maven.plugin.MojoExecutionException
name - Configuration task name
org.apache.maven.plugin.MojoExecutionException - if there is an error finding the ConfigurationTaskprotected 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()
public Map<String,String> getComponentProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||