Skip to content

Introduce support for @QueryHandler, @QueryDispatcher and @Query #87

@zambrovski

Description

@zambrovski

There are query handlers (methods) residing inside of a projection (aka Query model). If those could be annotated with @QueryHandler and their parameters with @Query then the CQRS API would be completed with @QueryDispatcher, having both the command and the query side kind of symmetric.

 @interface QueryHandler {
   String name() default "";
   String namespace() default "";
 }

 @interface Query {
   String name() default "";
   String namespace() default "";
 }

 @interface QueryDispatcher {
   String dispatches() default "";
 }

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions