Package commandManager
Class CommandManager
java.lang.Object
commandManager.CommandManager
Command Manager for interactive collection manage. For execute commands, use CommandExecutor class
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionSetup command manager and all of its commands.CommandManager
(CommandMode mode, Scanner scanner) Constructor provides choice of commands behavior: ex. userMode or nonUserMode -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeCommand
(String[] args) Universe method for command executing.Get all commands from manager.
-
Constructor Details
-
CommandManager
public CommandManager()Setup command manager and all of its commands. -
CommandManager
Constructor provides choice of commands behavior: ex. userMode or nonUserMode- Parameters:
mode
- Mode for CommandHandlerscanner
- Commands scanner- Since:
- 1.1
- See Also:
-
-
Method Details
-
getCommands
Get all commands from manager.- Returns:
- Map of loaded commands
-
executeCommand
Universe method for command executing.- Parameters:
args
- full separated line from stream
-