|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jomc.mojo.AbstractJomcMojo
org.jomc.mojo.AbstractClassesCommitMojo
public abstract class AbstractClassesCommitMojo
Base class for committing model objects to class files.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractClassesCommitMojo()
Creates a new AbstractClassesCommitMojo instance. |
Method Summary | |
---|---|
protected void |
assertValidParameters()
Validates the parameters of the goal. |
protected void |
executeTool()
Executes this tool. |
protected abstract ClassLoader |
getClassesClassLoader()
Gets the class loader to use for committing class file model objects. |
protected abstract File |
getClassesDirectory()
Gets the directory holding the class files to commit model objects to. |
protected abstract String |
getClassesModuleName()
Gets the name of the module to commit class file model objects of. |
protected List<Transformer> |
getTransformers()
Gets transformers to use for transforming model objects. |
protected List<Transformer> |
getTransformers(ClassLoader classLoader)
Deprecated. As of JOMC 1.2, the dependencies of the project are no longer searched for XSLT documents. Please use method getTransformers() . This method will be removed in version 2.0. |
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 |
---|
public AbstractClassesCommitMojo()
AbstractClassesCommitMojo
instance.
Method Detail |
---|
@Deprecated protected List<Transformer> getTransformers(ClassLoader classLoader) throws MojoExecutionException
getTransformers()
. This method will be removed in version 2.0.
classLoader
- The class loader to use for loading a transformer class path resource.
NullPointerException
- if classLoader
is null
.
MojoExecutionException
- if getting the transformers fails.protected List<Transformer> getTransformers() throws MojoExecutionException
MojoExecutionException
- if getting the transformers fails.protected void assertValidParameters() throws MojoFailureException
AbstractJomcMojo
assertValidParameters
in class AbstractJomcMojo
MojoFailureException
- if illegal parameter values are detected.AbstractJomcMojo.assertValidResources(java.util.Collection)
protected final void executeTool() throws Exception
AbstractJomcMojo
executeTool
in class AbstractJomcMojo
Exception
- if execution of this tool fails.protected abstract String getClassesModuleName() throws MojoExecutionException
MojoExecutionException
- if getting the name fails.protected abstract ClassLoader getClassesClassLoader() throws MojoExecutionException
MojoExecutionException
- if getting the class loader fails.protected abstract File getClassesDirectory() throws MojoExecutionException
MojoExecutionException
- if getting the directory fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |