org.codehaus.mojo.castor
Class AbstractMappingMojo

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

public abstract class AbstractMappingMojo
extends org.apache.maven.plugin.AbstractMojo

A mojo that uses Castor MappingTool to generate mapping files from a Class. MappingTool.

Author:
nicolas

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractMappingMojo()
           
 
Method Summary
 void execute()
          
protected abstract  String getClassName()
           
protected abstract  String getMappingName()
           
protected  ClassLoader 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

AbstractMappingMojo

public AbstractMappingMojo()
Method Detail

execute

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

Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
See Also:
Mojo.execute()

getProjectClassLoader

protected ClassLoader getProjectClassLoader()
                                     throws org.apache.maven.artifact.DependencyResolutionRequiredException,
                                            MalformedURLException
Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
MalformedURLException

getClassName

protected abstract String getClassName()
Returns:
the classname

getMappingName

protected abstract String getMappingName()
Returns:
the mappingName


Copyright © 2005-2011 Codehaus. All Rights Reserved.