com.solace.spring.cloud.stream.binder.config.ExtendedBindingHandlerMappingsProviderConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-stream-binder-solace Show documentation
Show all versions of spring-cloud-stream-binder-solace Show documentation
A Spring Cloud Stream Binder implementation using the Solace Java API (JCSMP)
package com.solace.spring.cloud.stream.binder.config;
import org.springframework.boot.context.properties.source.ConfigurationPropertyName;
import org.springframework.cloud.stream.config.BindingHandlerAdvise.MappingsProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.HashMap;
import java.util.Map;
@Configuration
public class ExtendedBindingHandlerMappingsProviderConfiguration {
@Bean
public MappingsProvider solaceExtendedPropertiesDefaultMappingsProvider() {
return () -> {
Map mappings = new HashMap<>();
mappings.put(ConfigurationPropertyName.of("spring.cloud.stream.solace.bindings"),
ConfigurationPropertyName.of("spring.cloud.stream.solace.default"));
return mappings;
};
}
}