Extract ResponseDispatcher field into CommandHandler #58

Closed
opened 2026-04-07 17:50:14 +02:00 by lars.winzer · 5 comments
lars.winzer commented 2026-04-07 17:50:14 +02:00 (Migrated from git.scicore.unibas.ch)

Feature Request

Summary

A field for the ResponseDispatcher should be moved into the CommandHandler, as it is the most required dependency.

Required workarround

The field for the ResponseDispatcher has been implemented in every implementation of the CommandHandler so far. Leading to duplicated code.

Description

The CommandHandler needs to be refactored into a class.

Its constructor will require the ResponseDispatcher as a parameter, assigning it to a protected internal field.

Checklist

  • I have described the function in detail
  • I searched docs for alternative implementations matching my needs
  • I added relevant labels
## Feature Request <!--The reccommended type is: Task--> ### Summary A field for the ResponseDispatcher should be moved into the CommandHandler, as it is the most required dependency. ### Required workarround The field for the ResponseDispatcher has been implemented in every implementation of the CommandHandler so far. Leading to duplicated code. ### Description The CommandHandler needs to be refactored into a class. Its constructor will require the ResponseDispatcher as a parameter, assigning it to a protected internal field. ### Checklist - [x] I have described the function in detail - [x] I searched docs for alternative implementations matching my needs - [x] I added relevant labels
lars.winzer commented 2026-04-08 18:58:48 +02:00 (Migrated from git.scicore.unibas.ch)

assigned to @lars.winzer

assigned to @lars.winzer
lars.winzer commented 2026-04-08 18:58:59 +02:00 (Migrated from git.scicore.unibas.ch)
created branch [`feat/58-extract-responsedispatcher-field-into-commandhandler`](/cs108-fs26/Gruppe-13/-/compare/main...feat%2F58-extract-responsedispatcher-field-into-commandhandler) to address this issue
lars.winzer commented 2026-04-08 19:14:49 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in merge request !87

mentioned in merge request !87
lars.winzer commented 2026-04-08 19:15:24 +02:00 (Migrated from git.scicore.unibas.ch)

added 8m of time spent at 2026-04-08 12:00:00 +0200

added 8m of time spent at 2026-04-08 12:00:00 +0200
lars.winzer commented 2026-04-08 19:16:16 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in commit 5abb46b915

mentioned in commit 5abb46b9150ed60d015b603630d8f45a598318cb
lars.winzer (Migrated from git.scicore.unibas.ch) closed this issue 2026-04-08 19:16:16 +02:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: University-of-Basel-Studentprojects/Programmierprojekt#58