Search in sources :

Example 1 with BinderTypeRegistry

use of org.springframework.cloud.stream.binder.BinderTypeRegistry in project spring-cloud-stream by spring-cloud.

the class TestChannelBinderConfiguration method binderTypeRegistry.

@Bean
public BinderTypeRegistry binderTypeRegistry() {
    BinderType binderType = new BinderType(NAME, new Class[] { TestChannelBinderConfiguration.class });
    BinderTypeRegistry btr = new DefaultBinderTypeRegistry(Collections.singletonMap(NAME, binderType));
    return btr;
}
Also used : DefaultBinderTypeRegistry(org.springframework.cloud.stream.binder.DefaultBinderTypeRegistry) BinderType(org.springframework.cloud.stream.binder.BinderType) DefaultBinderTypeRegistry(org.springframework.cloud.stream.binder.DefaultBinderTypeRegistry) BinderTypeRegistry(org.springframework.cloud.stream.binder.BinderTypeRegistry) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 BinderType (org.springframework.cloud.stream.binder.BinderType)1 BinderTypeRegistry (org.springframework.cloud.stream.binder.BinderTypeRegistry)1 DefaultBinderTypeRegistry (org.springframework.cloud.stream.binder.DefaultBinderTypeRegistry)1 Bean (org.springframework.context.annotation.Bean)1