refactor: `ChatRoomFactory` returns real `ChatRoom`s
authorKai Moritz <kai@juplo.de>
Sun, 26 Feb 2023 14:30:20 +0000 (15:30 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 18 Aug 2023 15:18:41 +0000 (17:18 +0200)
commit6ef0c2ef399d63640456aed0e7b28de095dfbe9c
tree3c1a4d809fea9d00af0a3cf08fba3703abab504d
parent8d8ad4fbe742d49c498993e127f7a4ab72b20020
refactor: `ChatRoomFactory` returns real `ChatRoom`s

- `ChatHomeService` only deals with real `ChatRoom`s.
- Hence, there is no need for `ChatRoomFactory`, to return the simplified
  interface `ChatRoomInfo`.
- This is, because the implementation specific logic is implemented in the
  `ChatHomeService`, not `ChatHome` itself: the actual implementation is
  hidden behind that service (and behind the service `ChatRoomService` in
  the domain-class `ChatRoom`).
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoomFactory.java
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatRoomFactory.java