Annotation Type CmdHandler
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface CmdHandler
AnnotatedCommandHandlerspecific method annotation, that can be used instead ofHandler, that can be applied to any single argument method inside aAnnotatedCommandHandler
The annotated methods can have the following accessibility: private, protected, public, etc.Each annotated method will be a candidate for command message handling.
The single method argument type is matched against the concrete command type usingClass.isAssignableFrom(Class).
The method MAY return a value or void.{@code public class OrdersCommandHandler extends AnnotatedCommandHandler {