|
||||||||||
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)
Returns the value from the componentProperties element which key is the one being passed. |
boolean |
getComponentProperty(String key,
boolean defaultValue)
Returns the value from the componentProperties element as a boolean value, or if a value is not found returns the default value. |
String |
getComponentProperty(String key,
String defaultValue)
Returns the value from the componentProperties element which key is the one being passed, or if is null or empty then returns the default value being specified. |
MavenProject |
getProject()
Returns the MavenProject object. |
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()
ExporterMojo
getProject
in interface ExporterMojo
ExporterMojo.getProject()
public String getComponentProperty(String key)
ExporterMojo
getComponentProperty
in interface ExporterMojo
key
- Key
ExporterMojo.getComponentProperty(String)
public boolean getComponentProperty(String key, boolean defaultValue)
ExporterMojo
getComponentProperty
in interface ExporterMojo
key
- KeydefaultValue
- Default value
ExporterMojo.getComponentProperty(String,boolean)
public void execute() throws MojoExecutionException, MojoFailureException
execute
in interface Mojo
MojoExecutionException
MojoFailureException
Mojo.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 exporterprotected ComponentConfiguration getComponentConfiguration(String name) throws MojoExecutionException
name
- Configuration task name
MojoExecutionException
- if there is an error finding the ConfigurationTaskpublic String getComponentProperty(String key, String defaultValue)
ExporterMojo
getComponentProperty
in interface ExporterMojo
key
- KeydefaultValue
- Default value
ExporterMojo.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 |