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

com.tencent.devops.common.stream.config.CommonEventConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 3.1.0-rc.4
Show newest version
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