- return new ChatHome(chatroomFactory, storageStrategy.readChatrooms());
- }
-
- @Bean
- public StorageStrategy storageStrategy(
- ChatBackendProperties properties,
- ObjectMapper mapper,
- InMemoryChatroomFactory chatroomFactory)
- {
- return new LocalJsonFilesStorageStrategy(
- Paths.get(properties.getDatadir()),
- mapper,
- chatroomFactory);