Annotation Type CmdHandler


  • @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    public @interface CmdHandler
    AnnotatedCommandHandler specific method annotation, that can be used instead of Handler, that can be applied to any single argument method inside a AnnotatedCommandHandler
    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 using Class.isAssignableFrom(Class).
    The method MAY return a value or void.

    {@code
     public class OrdersCommandHandler extends AnnotatedCommandHandler {