1 package de.juplo.kafka.chat.backend.storage.nostorage;
3 import de.juplo.kafka.chat.backend.implementation.StorageStrategy;
4 import lombok.extern.slf4j.Slf4j;
5 import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
6 import org.springframework.context.annotation.Bean;
7 import org.springframework.context.annotation.Configuration;
8 import org.springframework.context.annotation.Lazy;
11 @ConditionalOnProperty(
12 prefix = "chat.backend.inmemory",
13 name = "storage-strategy",
15 matchIfMissing = true)
18 public class NoStorageStorageConfiguration
21 public StorageStrategy storageStrategy()
23 return new NoStorageStorageStrategy();
30 log.info("FOO (woanders)!");