Class MCRCommandManager

java.lang.Object
org.mycore.frontend.cli.MCRCommandManager
Direct Known Subclasses:
MCRWebCLICommandManager

public class MCRCommandManager extends Object
Manages all commands for the Command Line Interface and WebCLI.
Author:
Frank Lützenkirchen, Robert Stephan
  • Field Details

  • Constructor Details

    • MCRCommandManager

      public MCRCommandManager()
  • Method Details

    • handleInitException

      protected void handleInitException(Exception ex)
    • getKnownCommands

      public static TreeMap<String,List<MCRCommand>> getKnownCommands()
    • initBuiltInCommands

      protected void initBuiltInCommands()
    • initCommands

      protected void initCommands()
    • initConfiguredCommands

      protected void initConfiguredCommands(String type)
      Read internal and/or external commands
    • addAnnotatedCLIClass

      protected void addAnnotatedCLIClass(Class<?> cliClass)
    • addDefaultCLIClass

      protected void addDefaultCLIClass(String className)
    • invokeCommand

      public List<String> invokeCommand(String command) throws Exception
      Throws:
      Exception