- public StorageStrategy storageStrategy(
- ChatBackendProperties properties,
- ObjectMapper mapper,
- ChatroomFactory chatroomFactory)
- {
- return new LocalJsonFilesStorageStrategy(
- Paths.get(properties.getDatadir()),
- mapper,
- chatroomFactory);
- }
-
- @Bean
- ChatroomFactory chatroomFactory(InMemoryPersistenceStrategy persistenceStrategy)
+ InMemoryChatHomeService chatHomeService(
+ StorageStrategy storageStrategy,
+ Clock clock,
+ ChatBackendProperties properties)