All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.soffa.foundation.spring.config.NoopPubSubClientConfig Maven / Gradle / Ivy

There is a newer version: 0.17.31
Show newest version
package dev.soffa.foundation.spring.config;

import dev.soffa.foundation.message.pubsub.PubSubClient;
import dev.soffa.foundation.spring.service.NoopPubSubClient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class NoopPubSubClientConfig {

    @ConditionalOnMissingBean(PubSubClient.class)
    @Bean
    public PubSubClient createDefaultPubSubClient() {
        return new NoopPubSubClient();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy