+ return new LocalJsonFilesStorageStrategy(
+ Paths.get(properties.getDatadir()),
+ mapper,
+ chatroomFactory);
+ }
+
+ @Bean
+ ChatroomFactory chatroomFactory(ChatBackendProperties properties)
+ {
+ return new InMemoryChatroomFactory(properties.getChatroomBufferSize());