Extract ResponseDispatcher field into constructor of CommandHandler #243

Merged
lars.winzer merged 3 commits from feat/58-extract-responsedispatcher-field-into-commandhandler into main 2026-04-08 19:16:15 +02:00
Showing only changes of commit 61e77be35c - Show all commits
@@ -16,6 +16,11 @@ public abstract class CommandHandler<T extends Request> {
private final List<HandlerCheck> checks = new ArrayList<>();
protected final ResponseDispatcher responseDispatcher;
/**
* Constructs a CommandHandler with the specified ResponseDispatcher.
*
* @param responseDispatcher the ResponseDispatcher instance used to send responses to clients.
*/
public CommandHandler(ResponseDispatcher responseDispatcher) {
this.responseDispatcher = responseDispatcher;
}