AbstractCommand, ClearCommand, HelpCommand, PauseCommand, QuitCommand, RestartCommand, ResumeCommand, SysInfoCommand, TransletCommand, VerboseCommandpublic interface Command
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
Command.Descriptor |
An interface that can be used to describe the the functionality of the
command implementation.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
execute(java.lang.String[] args) |
This method will be called as the starting point to execute the logic
for the action mapped to this command.
|
Command.Descriptor |
getDescriptor() |
This method returns an instance of Command.Descriptor.
|
void |
printUsage() |
Prints the usage statement for the specified command.
|
void |
printUsage(Console console) |
Prints the usage statement for the specified command.
|
java.lang.String execute(java.lang.String[] args)
throws java.lang.Exception
args - the command line argumentsjava.lang.Exception - if an error occurs during command executionvoid printUsage()
void printUsage(Console console)
console - the Console instanceCommand.Descriptor getDescriptor()
Copyright © 2008–2017 The Aspectran Project. All rights reserved.