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;
9 @ConditionalOnProperty(
10 prefix = "chat.backend.inmemory",
11 name = "storage-strategy",
13 matchIfMissing = true)
15 public class NoStorageStorageConfiguration
18 public StorageStrategy storageStrategy()
20 return new NoStorageStorageStrategy();