Annotation Type Handler


  • @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    public @interface Handler
    Method annotation that can be applied to any single argument method inside AnnotatedCommandHandler after which the 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 accessibility can be any combination of private, protected, public, etc.
    The method may return a value or void.