
public abstract class AbstractResourceFileProcessorCommand extends AbstractJomcToolCommand
ResourceFileProcessor based command implementation.AbstractModletCommand.CommandLineClassLoaderCommand.ListenerSTATUS_FAILURE, STATUS_SUCCESS| Constructor and Description |
|---|
AbstractResourceFileProcessorCommand()
Creates a new
AbstractResourceFileProcessorCommand instance. |
| Modifier and Type | Method and Description |
|---|---|
protected ResourceFileProcessor |
createResourceFileProcessor(CommandLine commandLine)
Creates a new
ResourceFileProcessor 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 |
processResourceFiles(CommandLine commandLine)
Processes resource files.
|
createJomcTool, createObject, getImplementation, getLocale, getModule, getSpecification, isModulesProcessingRequestedcreateModelContext, getModelcreateTransformer, getDocumentFiles, getModel, logexecute, getDefaultLogLevel, getExecutorService, getListeners, getLogLevel, isLoggable, log, postExecuteCommand, preExecuteCommand, setDefaultLogLevel, setLogLevelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAbbreviatedName, getLongDescription, getName, getShortDescriptionpublic AbstractResourceFileProcessorCommand()
AbstractResourceFileProcessorCommand instance.public Options getOptions()
CommandgetOptions in interface CommandgetOptions in class AbstractJomcToolCommandprotected ResourceFileProcessor createResourceFileProcessor(CommandLine commandLine) throws CommandExecutionException
ResourceFileProcessor instance taking a command line.commandLine - The command line to process.ResourceFileProcessor 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 AbstractCommandcommandLine - The command line to execute.CommandExecutionException - if executing the command fails.AbstractCommand.execute(org.apache.commons.cli.CommandLine)protected abstract void processResourceFiles(CommandLine commandLine) throws CommandExecutionException
commandLine - The command line to execute.CommandExecutionException - if processing resource files fails.Copyright © 2005–2016 The JOMC Project. All rights reserved.