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, 20 Aug 2023 08:44:31 +0000 (10:44 +0200)
commit40b27168d58ffc1a4837c52fad98655b231cb4b2
tree35bb7992b7508eca87a7b966cc07135bae8b11f6
parent1d4b90c15b1571bce48389e2c34e7b15c1697b89
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