refactor: Removed `ChatHomeFactory`
authorKai Moritz <kai@juplo.de>
Sat, 14 Jan 2023 15:01:55 +0000 (16:01 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 25 Jan 2023 21:00:58 +0000 (22:00 +0100)
commit3526be7c01fa286f4253c96fd7f6c35abf3694ef
tree70e74416b4af636679876f9c557c04ad47dbe60c
parentff98b068a91fc9e60e51bd4a95065633bb8ed2db
refactor: Removed `ChatHomeFactory`

- `ChatHomeFactory` was only used during initialization.
- By moving the instanciation of `chatHomes` into the implementation-
  specific configuration, the necessity of the factory vanished.
src/main/java/de/juplo/kafka/chat/backend/ChatBackendConfiguration.java
src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeFactory.java [deleted file]
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeFactory.java [deleted file]
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesConfiguration.java
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java