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;
9 import java.time.Clock;
13 @EnableConfigurationProperties(ChatBackendProperties.class)
14 public class ChatBackendConfiguration
17 public ChatHome chatHome(ChatHomeService chatHomeService)
19 return new ChatHome(chatHomeService);
25 return Clock.systemDefaultZone();