Class CommandManager

java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.command.CommandManager

public class CommandManager extends Object
Class manages all application commands.
  • Constructor Details

    • CommandManager

      public CommandManager(@NotNull @NotNull Properties commandProperties) throws Exception
      Instantiates new command manager with command 'localisation'.
      Parameters:
      commandProperties - command properties
      Throws:
      Exception - if any exception happens.
  • Method Details

    • registerAllCommandHandlers

      public void registerAllCommandHandlers() throws CommandRegistrationException
      Registers all commands.
      Throws:
      CommandRegistrationException - if any command exception happens while registering commands.
    • processCommand

      public void processCommand(String[] args) throws Exception
      Processes a command.
      Parameters:
      args - command
      Throws:
      Exception - if any exception happens.