refactor: Introduced `ChatroomFactory`
authorKai Moritz <kai@juplo.de>
Wed, 28 Dec 2022 17:09:06 +0000 (18:09 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 28 Dec 2022 17:10:19 +0000 (18:10 +0100)
commitd2aef4ab1b82ccb0883bad80ce428fcab6e6c293
tree2369cc9526427e8f7d0573c367e427eb2dfbbe65
parent798a76cab48bca230ae38f3a05f9c77be8d03eed
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]