Command
ClearCommand
, HelpCommand
, PauseCommand
, QuitCommand
, RestartCommand
, ResumeCommand
, SysInfoCommand
, TransletCommand
, VerboseCommand
public abstract class AbstractCommand extends java.lang.Object implements Command
Command.Descriptor
Constructor | Description |
---|---|
AbstractCommand(CommandRegistry registry) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addOption(Option option) |
|
CommandRegistry |
getCommandRegistry() |
|
Console |
getConsole() |
|
ShellService |
getService() |
|
protected ParsedOptions |
parse(java.lang.String[] args) |
|
void |
printUsage() |
Prints the usage statement for the specified command.
|
void |
printUsage(Console console) |
Prints the usage statement for the specified command.
|
execute, getDescriptor
protected final Options options
public AbstractCommand(CommandRegistry registry)
public ShellService getService()
public Console getConsole()
public CommandRegistry getCommandRegistry()
protected void addOption(Option option)
protected ParsedOptions parse(java.lang.String[] args) throws OptionParserException
OptionParserException
public void printUsage()
Command
printUsage
in interface Command
public void printUsage(Console console)
Command
printUsage
in interface Command
console
- the Console instanceCopyright © 2008–2018 The Aspectran Project. All rights reserved.