Package org.mycore.frontend.cli
Class MCRCommandManager
java.lang.Object
org.mycore.frontend.cli.MCRCommandManager
- Direct Known Subclasses:
MCRWebCLICommandManager
Manages all commands for the Command Line Interface and WebCLI.
- Author:
- Frank Lützenkirchen, Robert Stephan
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAnnotatedCLIClass
(Class<?> cliClass) protected void
addDefaultCLIClass
(String className) static TreeMap<String,
List<MCRCommand>> protected void
protected void
protected void
protected void
initConfiguredCommands
(String type) Read internal and/or external commandsinvokeCommand
(String command)
-
Field Details
-
knownCommands
-
-
Constructor Details
-
MCRCommandManager
public MCRCommandManager()
-
-
Method Details
-
handleInitException
-
getKnownCommands
-
initBuiltInCommands
protected void initBuiltInCommands() -
initCommands
protected void initCommands() -
initConfiguredCommands
Read internal and/or external commands -
addAnnotatedCLIClass
-
addDefaultCLIClass
-
invokeCommand
- Throws:
Exception
-