Class AbstractCommand

java.lang.Object
com.aspectran.shell.command.AbstractCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AspectCommand, ClearCommand, EchoCommand, HelpCommand, HistoryCommand, JettyCommand, JobCommand, PBDecryptCommand, PBEncryptCommand, QuitCommand, RestartCommand, SysInfoCommand, TransletCommand, UndertowCommand, VerboseCommand

public abstract class AbstractCommand extends Object implements Command
  • Constructor Details

  • Method Details

    • getCommandRegistry

      public CommandRegistry getCommandRegistry()
    • getCommandRunner

      public ConsoleCommander getCommandRunner()
    • getShellService

      public ShellService getShellService()
    • getActiveShellService

      public ShellService getActiveShellService()
    • isServiceAvailable

      public boolean isServiceAvailable()
    • addOption

      protected void addOption(Option option)
    • addArguments

      protected void addArguments(Arguments arguments)
    • touchArguments

      protected Arguments touchArguments()
    • skipParsingAtNonOption

      protected void skipParsingAtNonOption()
    • getOptions

      public Options getOptions()
      Specified by:
      getOptions in interface Command
    • getArgumentsList

      public List<Arguments> getArgumentsList()
      Specified by:
      getArgumentsList in interface Command
    • printHelp

      public void printHelp(ShellConsole console)
      Description copied from interface: Command
      Prints the usage statement for the specified command.
      Specified by:
      printHelp in interface Command
      Parameters:
      console - the Console instance
    • printQuickHelp

      public void printQuickHelp(ShellConsole console)
      Specified by:
      printQuickHelp in interface Command