Uses of Interface
dk.cloudcreate.essentials.reactive.command.CommandHandler
-
Packages that use CommandHandler Package Description dk.cloudcreate.essentials.reactive.command -
-
Uses of CommandHandler in dk.cloudcreate.essentials.reactive.command
Classes in dk.cloudcreate.essentials.reactive.command that implement CommandHandler Modifier and Type Class Description classAnnotatedCommandHandlerExtending this class will allow you to colocate multiple related Command handling methods inside the same class and use it together with theLocalCommandBus
Each method must accept a single Command argument, may return a value or return void and be annotated with theEventHandlerannotation.
The method argument type is matched against the concrete command type usingClass.isAssignableFrom(Class).
The method accessibility can be any combination of private, protected, public, etc.
Example:Methods in dk.cloudcreate.essentials.reactive.command that return CommandHandler Modifier and Type Method Description protected CommandHandlerLocalCommandBus. findCommandHandlerCapableOfHandling(Object command)Find aCommandHandlercapable of handling the given commandMethods in dk.cloudcreate.essentials.reactive.command with parameters of type CommandHandler Modifier and Type Method Description LocalCommandBusLocalCommandBus. addCommandHandler(CommandHandler commandHandler)Add a new command handler.LocalCommandBusLocalCommandBus. removeCommandHandler(CommandHandler commandHandler)Remove a command handler.
-