refactor: Introduced `ChatroomFactory`
authorKai Moritz <kai@juplo.de>
Wed, 28 Dec 2022 17:09:06 +0000 (18:09 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 15 Jan 2023 18:35:59 +0000 (19:35 +0100)
commit0eab1a667e8863acfe318f520d9f0bca7fba2e2b
tree960fb01294370c0845c1d569ed9f92e8d73fd3d5
parent0daa9d1a4d6f6b95ffdb42fcf1350ff26a9166e0
refactor: Introduced `ChatroomFactory`

- `ChatBackendController` only has to know of the `ChatroomFactory`.
- `ChatBackendController` does not have to know the `PersistenceStrategy`.
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendController.java
src/main/java/de/juplo/kafka/chat/backend/domain/ChatroomFactory.java [new file with mode: 0644]
src/main/java/de/juplo/kafka/chat/backend/persistence/InMemoryChatroomFactory.java [new file with mode: 0644]