org.codehaus.mojo.castor
Class AbstractMappingMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
AbstractMappingMojo
public AbstractMappingMojo()
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-2011 Codehaus. All Rights Reserved.