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()
          Returns the class name.
protected abstract  String getMappingName()
          Returns the name of the mapping file.
protected  ClassLoader getProjectClassLoader()
          Returns the private project ClassLoader.
 
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
Returns the private project ClassLoader.

Returns:
A project-specific ClassLoader.
Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException - If a dependecy cannot be resolved.
MalformedURLException - If an URL is malformed.

getClassName

protected abstract String getClassName()
Returns the class name.

Returns:
the classname

getMappingName

protected abstract String getMappingName()
Returns the name of the mapping file.

Returns:
the mappingName


Copyright © 2005-2012 Codehaus. All Rights Reserved.