Class RestartCommand
java.lang.Object
com.aspectran.shell.command.AbstractCommand
com.aspectran.shell.command.builtins.RestartCommand
- All Implemented Interfaces:
Command
Restarts the Aspectran Shell.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.aspectran.shell.command.Command
Command.Descriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(ParsedOptions options, ShellConsole console) This method will be called as the starting point to execute the logic for the action mapped to this command.This method returns an instance of Command.Descriptor.Methods inherited from class com.aspectran.shell.command.AbstractCommand
addArguments, addOption, getActiveShellService, getArgumentsList, getCommandRegistry, getCommandRunner, getOptions, getShellService, isServiceAvailable, printHelp, printQuickHelp, skipParsingAtNonOption, touchArguments
-
Constructor Details
-
RestartCommand
-
-
Method Details
-
execute
Description copied from interface:Command
This method will be called as the starting point to execute the logic for the action mapped to this command.- Parameters:
options
- the parsed optionsconsole
- the console- Throws:
Exception
- if an error occurs during command execution
-
getDescriptor
Description copied from interface:Command
This method returns an instance of Command.Descriptor. The descriptor is meta information about the command.- Returns:
- a Descriptor that is meta information about the command
-