com.tencent.devops.common.stream.config.CommonEventConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-event Show documentation
Show all versions of common-event Show documentation
Tencent blueking ci project
package com.tencent.devops.common.stream.config
import com.tencent.devops.common.event.dispatcher.SampleEventDispatcher
import com.tencent.devops.common.stream.config.interceptor.BkChannelInterceptor
import org.springframework.cloud.stream.function.StreamBridge
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.integration.config.GlobalChannelInterceptor
@Configuration
class CommonEventConfiguration {
@Bean
fun sampleEventDispatcher(streamBridge: StreamBridge) = SampleEventDispatcher(streamBridge)
@Bean
@GlobalChannelInterceptor
fun bkChannelInterceptor() = BkChannelInterceptor()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy