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;
-import org.springframework.context.annotation.Lazy;
@ConditionalOnProperty(
havingValue = "none",
matchIfMissing = true)
@Configuration
-@Slf4j
public class NoStorageStorageConfiguration
{
@Bean
{
return new NoStorageStorageStrategy();
}
-
- @Bean
- @Lazy(false)
- public String foo()
- {
- log.info("FOO (woanders)!");
- return "FOO";
- }
}