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>
Sun, 26 Feb 2023 14:30:20 +0000 (15:30 +0100)
commit4d8c110dce80cdc2c1819785fb71739fbe9ee9c1
treeb2bf7a0bc8297127f9645b322788b1a7a95dcff7
parent5df111ec5b6442114b90cc2f1ad45ae73a66e69b
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