Class ServiceBusBinderConfiguration
java.lang.Object
com.azure.spring.cloud.stream.binder.servicebus.config.ServiceBusBinderConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnMissingBean(org.springframework.cloud.stream.binder.Binder.class)
@Import({com.azure.spring.cloud.autoconfigure.context.AzureGlobalPropertiesAutoConfiguration.class,com.azure.spring.cloud.autoconfigure.context.AzureTokenCredentialAutoConfiguration.class,com.azure.spring.cloud.autoconfigure.resourcemanager.AzureResourceManagerAutoConfiguration.class,com.azure.spring.cloud.autoconfigure.resourcemanager.AzureServiceBusResourceManagerAutoConfiguration.class,com.azure.spring.cloud.autoconfigure.servicebus.AzureServiceBusAutoConfiguration.class,com.azure.spring.cloud.autoconfigure.servicebus.AzureServiceBusMessagingAutoConfiguration.class,ServiceBusBinderHealthIndicatorConfiguration.class})
@EnableConfigurationProperties(com.azure.spring.cloud.stream.binder.servicebus.core.properties.ServiceBusExtendedBindingProperties.class)
public class ServiceBusBinderConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionserviceBusBinder
(ServiceBusChannelProvisioner channelProvisioner, ServiceBusExtendedBindingProperties bindingProperties, org.springframework.beans.factory.ObjectProvider<com.azure.spring.messaging.servicebus.core.properties.NamespaceProperties> namespaceProperties, org.springframework.beans.factory.ObjectProvider<com.azure.spring.messaging.servicebus.support.converter.ServiceBusMessageConverter> messageConverter, org.springframework.beans.factory.ObjectProvider<ServiceBusProducerFactoryCustomizer> producerFactoryCustomizers, org.springframework.beans.factory.ObjectProvider<ServiceBusProcessorFactoryCustomizer> processorFactoryCustomizers) Declare theServiceBusMessageChannelBinder
bean.DeclareServiceBusChannelProvisioner
bean.
-
Constructor Details
-
ServiceBusBinderConfiguration
public ServiceBusBinderConfiguration()
-
-
Method Details
-
serviceBusChannelProvisioner
@Bean @ConditionalOnMissingBean({com.azure.spring.cloud.resourcemanager.provisioning.ServiceBusProvisioner.class,com.azure.spring.cloud.stream.binder.servicebus.core.provisioning.ServiceBusChannelProvisioner.class}) public ServiceBusChannelProvisioner serviceBusChannelProvisioner()DeclareServiceBusChannelProvisioner
bean.- Returns:
- the
ServiceBusChannelProvisioner
bean.
-
serviceBusBinder
@Bean @ConditionalOnMissingBean public ServiceBusMessageChannelBinder serviceBusBinder(ServiceBusChannelProvisioner channelProvisioner, ServiceBusExtendedBindingProperties bindingProperties, org.springframework.beans.factory.ObjectProvider<com.azure.spring.messaging.servicebus.core.properties.NamespaceProperties> namespaceProperties, org.springframework.beans.factory.ObjectProvider<com.azure.spring.messaging.servicebus.support.converter.ServiceBusMessageConverter> messageConverter, org.springframework.beans.factory.ObjectProvider<ServiceBusProducerFactoryCustomizer> producerFactoryCustomizers, org.springframework.beans.factory.ObjectProvider<ServiceBusProcessorFactoryCustomizer> processorFactoryCustomizers) Declare theServiceBusMessageChannelBinder
bean.- Parameters:
channelProvisioner
- the channel provisioner.bindingProperties
- the binding properties.namespaceProperties
- the namespace properties.messageConverter
- the message converter.producerFactoryCustomizers
- customizers to customize producer factories.processorFactoryCustomizers
- customizers to customize processor factories.- Returns:
- the
ServiceBusMessageChannelBinder
bean.
-