- private final Map<UUID, Chatroom> chatrooms = new HashMap<>();
- private final PersistenceStrategy persistenceStrategy;
- private final Clock clock;
+ private final ChatHomeService chatHomeService;
+ private final StorageStrategy storageStrategy;
+ private final String loggingCategory = ChatBackendController.class.getSimpleName();
+ private final Level loggingLevel;
+ private final boolean showOperatorLine;
+
+
+ public ChatBackendController(
+ ChatHomeService chatHomeService,
+ StorageStrategy storageStrategy,
+ ChatBackendProperties properties)
+ {
+ this.chatHomeService = chatHomeService;
+ this.storageStrategy = storageStrategy;
+ this.loggingLevel = properties.getProjectreactor().getLoggingLevel();
+ this.showOperatorLine = properties.getProjectreactor().isShowOperatorLine();
+ }