1 package de.juplo.kafka.chat.backend;
3 import de.juplo.kafka.chat.backend.domain.ChatHome;
4 import de.juplo.kafka.chat.backend.domain.ChatHomeService;
5 import org.springframework.boot.context.properties.EnableConfigurationProperties;
6 import org.springframework.context.annotation.Bean;
7 import org.springframework.context.annotation.Configuration;
8 import org.springframework.data.mongodb.repository.config.EnableReactiveMongoRepositories;
10 import java.time.Clock;
14 @EnableConfigurationProperties(ChatBackendProperties.class)
15 @EnableReactiveMongoRepositories
16 public class ChatBackendConfiguration
19 public ChatHome chatHome(ChatHomeService chatHomeService)
21 return new ChatHome(chatHomeService);
27 return Clock.systemDefaultZone();