Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zambrovski opened this issue Jun 3, 2022 · 0 comments
Open

Comments

@zambrovski
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant