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

com.bybutter.sisyphus.middleware.kafka.autoconfigure.SisyphusKafkaAutoConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 2.1.22
Show newest version
package com.bybutter.sisyphus.middleware.kafka.autoconfigure

import com.bybutter.sisyphus.middleware.kafka.DefaultKafkaResourceFactory
import com.bybutter.sisyphus.middleware.kafka.KafkaResourceFactory
import org.springframework.boot.autoconfigure.AutoConfiguration
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.ComponentScan

@AutoConfiguration
@ComponentScan(basePackageClasses = [SisyphusKafkaAutoConfiguration::class])
class SisyphusKafkaAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean(value = [KafkaResourceFactory::class])
    fun defaultKafkaResourceFactory(): KafkaResourceFactory {
        return DefaultKafkaResourceFactory()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy