Class CommandRegistration
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.command.CommandRegistration
Defines a method for registering all possible classes with command handlers.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandRegistration
(@NotNull Properties properties) Instantiates new registrator withProperties
containing all possible command flags. -
Method Summary
-
Constructor Details
-
CommandRegistration
Instantiates new registrator withProperties
containing all possible command flags.- Parameters:
properties
-Properties
with all possible command flags.
-
-
Method Details
-
registerClassCommands
Registers all handlers of a specificClass
. Handler is recognized byCommandHandler
annotation.- Parameters:
commandsClass
-Class
containing command handlers- Throws:
TokenException
- if command tokenization fails
-
getCommandsMap
RetursMap
with all registered command handlers- Returns:
Map
with all registered command handlers
-