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

com.solace.spring.cloud.stream.binder.config.ExtendedBindingHandlerMappingsProviderConfiguration Maven / Gradle / Ivy

There is a newer version: 5.0.1
Show newest version
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;
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy