+++ /dev/null
-package de.juplo.kafka.chat.backend;
-
-import de.juplo.kafka.chat.backend.domain.ChatHome;
-import de.juplo.kafka.chat.backend.domain.ChatHomeService;
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-
-import java.time.Clock;
-
-
-@Configuration
-@EnableConfigurationProperties(ChatBackendProperties.class)
-public class ChatBackendConfiguration
-{
- @Bean
- public ChatHome chatHome(ChatHomeService chatHomeService)
- {
- return new ChatHome(chatHomeService);
- }
-
- @Bean
- public Clock clock()
- {
- return Clock.systemDefaultZone();
- }
-}
+++ /dev/null
-package de.juplo.kafka.chat.backend;
-
-import lombok.Getter;
-import lombok.Setter;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-import java.nio.file.Paths;
-
-
-@ConfigurationProperties("chat.backend")
-@Getter
-@Setter
-public class ChatBackendProperties
-{
- private String storageDirectory = Paths.get(System.getProperty("java.io.tmpdir"),"chat", "backend").toString();
- private String allowedOrigins = "http://localhost:4200";
- private int chatroomBufferSize = 8;
-}
--- /dev/null
+package de.juplo.kafka.chat.backend;
+
+import de.juplo.kafka.chat.backend.domain.ChatHome;
+import de.juplo.kafka.chat.backend.domain.ChatHomeService;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import java.time.Clock;
+
+
+@Configuration
+@EnableConfigurationProperties(ChatBackendProperties.class)
+public class ChatBackendConfiguration
+{
+ @Bean
+ public ChatHome chatHome(ChatHomeService chatHomeService)
+ {
+ return new ChatHome(chatHomeService);
+ }
+
+ @Bean
+ public Clock clock()
+ {
+ return Clock.systemDefaultZone();
+ }
+}
--- /dev/null
+package de.juplo.kafka.chat.backend;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+import java.nio.file.Paths;
+
+
+@ConfigurationProperties("chat.backend")
+@Getter
+@Setter
+public class ChatBackendProperties
+{
+ private String storageDirectory = Paths.get(System.getProperty("java.io.tmpdir"),"chat", "backend").toString();
+ private String allowedOrigins = "http://localhost:4200";
+ private int chatroomBufferSize = 8;
+}