-
Notifications
You must be signed in to change notification settings - Fork 784
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
No error/warning for duplicate command handler #1756
Comments
@smcvb @azzazzel well, is just logging in warn is ok in this scene? or when should open the window like DuplicateCommandHandlerResolver |
I'd wager the |
well, how about the name of |
Although technically the same, conceptually a Command Handler can only exist at one spot. Otherwise, there's no guarantee that there's a single aggregate or component that is in charge of the command. So the current class is called Added, renaming |
i mean create a new DuplicateCommandHandlingMemberResolver interface and configure bean in |
Gotcha. I do not think it makes sense to construct an identical class as the |
Note that the solution for this problem is threefold:
So, not direct reuse or copy of the |
We consider this not as a bug, but as an enhancement over the current solution. |
Closing this issue as it's resolved in pull request #2207. |
Basic information
Steps to reproduce
Create an Aggregate that handles the same command in a constructor and in a method:
and start the application.
Expected behaviour
The framework prints "A duplicate command handler was found for command ... " error / warning message
Actual behaviour
No information about the duplicate handler
The text was updated successfully, but these errors were encountered: