com.bybutter.sisyphus.middleware.kafka.autoconfigure.SisyphusKafkaAutoConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sisyphus-kafka2 Show documentation
Show all versions of sisyphus-kafka2 Show documentation
Middleware for using Kafka in Sisyphus Project
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