package de.juplo.kafka.chat.backend.storage.nostorage;
import de.juplo.kafka.chat.backend.implementation.StorageStrategy;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
havingValue = "none",
matchIfMissing = true)
@Configuration
+@Slf4j
public class NoStorageStorageConfiguration
{
@Bean
@Lazy(false)
public String foo()
{
+ log.info("FOO (woanders)!");
return "FOO";
}
}
--- /dev/null
+package de.juplo.kafka.chat.backend;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Lazy;
+
+
+@Configuration
+@Slf4j
+public class MongoDbStorageNotActiveConfiguration
+{
+ @Bean
+ @Lazy(false)
+ public String foo()
+ {
+ log.info("FOO!");
+ return "FOO";
+ }
+}
+++ /dev/null
-package de.juplo.kafka.chat.backend.storage.mongodb;
-
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Lazy;
-
-
-@Configuration
-public class MongoDbStorageNotActiveConfiguration
-{
- @Bean
- @Lazy(false)
- public String foo()
- {
- return "FOO";
- }
-}