public abstract class AbstractSourceFileProcessorCommand extends AbstractJomcToolCommand
SourceFileProcessor
based command implementation.AbstractModletCommand.CommandLineClassLoader
Command.Listener
STATUS_FAILURE, STATUS_SUCCESS
Constructor and Description |
---|
AbstractSourceFileProcessorCommand()
Creates a new
AbstractSourceFileProcessorCommand instance. |
Modifier and Type | Method and Description |
---|---|
protected SourceFileProcessor |
createSourceFileProcessor(CommandLine commandLine)
Creates a new
SourceFileProcessor instance taking a command line. |
protected void |
executeCommand(CommandLine commandLine)
Called by the
execute method prior to the postExecuteCommand method. |
Options |
getOptions()
Gets the options of the command.
|
protected abstract void |
processSourceFiles(CommandLine commandLine)
Processes source files.
|
createJomcTool, createObject, getImplementation, getLocale, getModule, getSpecification, isModulesProcessingRequested
createModelContext, getModel
createTransformer, getDocumentFiles, getModel, log
execute, getDefaultLogLevel, getExecutorService, getListeners, getLogLevel, isLoggable, log, postExecuteCommand, preExecuteCommand, setDefaultLogLevel, setLogLevel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAbbreviatedName, getLongDescription, getName, getShortDescription
public AbstractSourceFileProcessorCommand()
AbstractSourceFileProcessorCommand
instance.public Options getOptions()
Command
getOptions
in interface Command
getOptions
in class AbstractJomcToolCommand
protected SourceFileProcessor createSourceFileProcessor(CommandLine commandLine) throws CommandExecutionException
SourceFileProcessor
instance taking a command line.commandLine
- The command line to process.SourceFileProcessor
instance as specified by the given command line or null
, if
creating a new instance fails.NullPointerException
- if commandLine
is null
.CommandExecutionException
- if creating a new instance fails.protected final void executeCommand(CommandLine commandLine) throws CommandExecutionException
execute
method prior to the postExecuteCommand
method.executeCommand
in class AbstractCommand
commandLine
- The command line to execute.CommandExecutionException
- if executing the command fails.AbstractCommand.execute(org.apache.commons.cli.CommandLine)
protected abstract void processSourceFiles(CommandLine commandLine) throws CommandExecutionException
commandLine
- The command line to execute.CommandExecutionException
- if processing source files fails.Copyright © 2005–2016 The JOMC Project. All rights reserved.