| Annotation Type | Description |
|---|---|
| Command |
Used to register a subclass of
AbstractCommand to be handled.The command is expected to have a constructor with a single parameter of CommandHandler
and a CommandConfig instance inside a field/method annotated with Config.To use other constructor, use CommandHandler.registerCommand(Class, Function, CommandConfig) instead |
| Config |
Used to mark configuration object
CommandConfig for command registration.The annotation is expected to be inside of a subclass of AbstractCommand
next to a field containing CommandConfig or a static method returning the
CommandConfig. |