public abstract class AbstractClassesCommitMojo extends AbstractJomcMojo
Constructor and Description |
---|
AbstractClassesCommitMojo()
Creates a new
AbstractClassesCommitMojo instance. |
Modifier and Type | Method and Description |
---|---|
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. |
assertValidResources, createClassFileProcessor, createJomcTool, createModelContext, createObject, createResourceFileProcessor, createSourceFileProcessor, execute, getAbsoluteFile, getDirectory, getExecutionStrategy, getGoal, getMainClassLoader, getMainClasspathElements, getMavenProject, getMavenSession, getModel, getModel, getModuleName, getOutputDirectory, getProperties, getReportOutputDirectory, getResource, getSessionDirectory, getSourceDirectory, getTestClassLoader, getTestClasspathElements, getTestModuleName, getTestOutputDirectory, getTestSourceDirectory, getTransformer, isClassProcessingEnabled, isExecutionPermitted, isLoggable, isModelObjectClasspathResolutionEnabled, isModelProcessingEnabled, isResourceProcessingEnabled, isSourceProcessingEnabled, isVerbose, log, log, logMissingModule, logProcessingModel, logProcessingModule, logSeparator, logSeparator, logToolSuccess, setClassProcessingEnabled, setModelObjectClasspathResolutionEnabled, setModelProcessingEnabled, setResourceProcessingEnabled, setSourceProcessingEnabled, setupJomcTool, setupModelContext, setVerbose
getLog, getPluginContext, setLog, setPluginContext
public AbstractClassesCommitMojo()
AbstractClassesCommitMojo
instance.@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.Copyright © 2005–2014 The JOMC Project. All rights reserved.