org.codehaus.mojo.castor
Class MappingsMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.castor.AbstractMappingMojo
          extended by org.codehaus.mojo.castor.MappingsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class MappingsMojo
extends AbstractMappingMojo

A mojo that uses Castor MappingTool to generate mapping files from a set of Classes. MappingTool.

Author:
nicolas
Is bound to the specified phase of the standard build lifecycle:
process-classes
Is defined by the goal name:
mappings

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MappingsMojo()
           
 
Method Summary
 void execute()
          
protected  String getClassName()
          Returns the class name.
protected  String getMappingName()
          Returns the mapping file name.
 
Methods inherited from class org.codehaus.mojo.castor.AbstractMappingMojo
getProjectClassLoader
 
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
 

Constructor Detail

MappingsMojo

public MappingsMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class AbstractMappingMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
See Also:
Mojo.execute()

getClassName

protected String getClassName()
Returns the class name.

Specified by:
getClassName in class AbstractMappingMojo
Returns:
the classname

getMappingName

protected String getMappingName()
Returns the mapping file name.

Specified by:
getMappingName in class AbstractMappingMojo
Returns:
the mappingName


Copyright © 2005-2012 Codehaus. All Rights Reserved.