refactor: Removed `ChatHomeFactory`
authorKai Moritz <kai@juplo.de>
Sat, 14 Jan 2023 15:01:55 +0000 (16:01 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 15 Jan 2023 18:39:01 +0000 (19:39 +0100)
commit80a568d33ab4c2b6658b61eff1261a4cd8bba6cb
tree43eb0653f021e33991caf47cb00a865d291ce6bb
parentbbb3f8a255d07797b21d8356eb36abf3c7b14caf
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