1 package de.juplo.kafka.chat.backend.storage.nostorage;
3 import de.juplo.kafka.chat.backend.implementation.StorageStrategy;
4 import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
5 import org.springframework.context.annotation.Bean;
6 import org.springframework.context.annotation.Configuration;
7 import org.springframework.context.annotation.Lazy;
10 @ConditionalOnProperty(
11 prefix = "chat.backend.inmemory",
12 name = "storage-strategy",
14 matchIfMissing = true)
16 public class NoStorageStorageConfiguration
19 public StorageStrategy storageStrategy()
21 return new NoStorageStorageStrategy();