Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor spring messaging sb #25219

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2376f58
add properties
yiliuTo Oct 30, 2021
4a98be6
split clientfactory
yiliuTo Oct 30, 2021
cbcc10e
refactor template and autoconfiguration
yiliuTo Oct 30, 2021
c1c416c
update binder
yiliuTo Oct 30, 2021
6a4450b
refactor
yiliuTo Nov 2, 2021
714f33d
refactor the auto-configuration of sb
saragluna Nov 2, 2021
ee95b16
Merge pull request #15 from saragluna/refactor-spring-messaging-sb
yiliuTo Nov 3, 2021
4fc469b
refactor health indicator
yiliuTo Nov 4, 2021
8c1f2ea
Merge branch 'feature/azure-spring-cloud-4.0' of https://github.com/A…
yiliuTo Nov 4, 2021
c0e2eba
add ut
yiliuTo Nov 5, 2021
94caad3
refactor sb health indicator
yiliuTo Nov 6, 2021
5a76c0b
add ut for health indicator
yiliuTo Nov 6, 2021
e031b0c
Merge branch 'feature/azure-spring-cloud-4.0' of https://github.com/A…
yiliuTo Nov 6, 2021
50880bb
modify service bus template api
yiliuTo Nov 7, 2021
a7d77d2
modify IT
yiliuTo Nov 8, 2021
8b9e12d
Merge branch 'feature/azure-spring-cloud-4.0' of https://github.com/A…
yiliuTo Nov 13, 2021
894f358
fix pipeline error
yiliuTo Nov 13, 2021
8331823
fix compiling errror
yiliuTo Nov 13, 2021
322cc97
modify binder configuration
yiliuTo Nov 13, 2021
146742c
fix pipeline error
yiliuTo Nov 13, 2021
04c1f34
move entity name and type to common level
yiliuTo Nov 15, 2021
ec94d29
Merge branch 'feature/azure-spring-cloud-4.0' of https://github.com/A…
yiliuTo Nov 15, 2021
396eb5d
fix pipeline error
yiliuTo Nov 15, 2021
da18b6a
fix ut
yiliuTo Nov 16, 2021
60e3dab
Merge branch 'feature/azure-spring-cloud-4.0' of https://github.com/A…
yiliuTo Nov 17, 2021
e19d966
remove invalid TODO
yiliuTo Nov 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,11 @@
<Method name="OnCloseSessionAsync"/>
<Bug pattern="NM_METHOD_NAMING_CONVENTION"/>
</Match>

<!-- Generated implementation of SubscriptionPropertiesSupplier is using an inline class -->
<Match>
<Class name="com.azure.spring.servicebus.core.processor.DefaultServiceBusNamespaceProcessorFactory"/>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
</Match>
<Match>
<Bug pattern="UWF_NULL_FIELD"/>
<Class name="com.azure.spring.integration.endpoint.AbstractInboundChannelAdapter"/>
Expand Down
18 changes: 4 additions & 14 deletions eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -554,23 +554,13 @@
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-stream-binder-servicebus-topic</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-stream-binder-servicebus-topic;current} -->
<artifactId>spring-cloud-azure-stream-binder-servicebus</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-stream-binder-servicebus;current} -->
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-stream-binder-servicebus-queue</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-stream-binder-servicebus-queue;current} -->
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-starter-stream-servicebus-queue</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-starter-stream-servicebus-queue;current} -->
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-starter-stream-servicebus-topic</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-starter-stream-servicebus-topic;current} -->
<artifactId>spring-cloud-azure-starter-stream-servicebus</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-starter-stream-servicebus;current} -->
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
Expand Down
6 changes: 2 additions & 4 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,12 @@ com.azure.spring:spring-cloud-azure-starter-integration-eventhubs;4.0.0-beta.1;4
com.azure.spring:spring-cloud-azure-starter-integration-servicebus;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-starter-integration-storage-queue;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-starter-stream-eventhubs;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-starter-stream-servicebus-queue;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-starter-stream-servicebus-topic;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-starter-stream-servicebus;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-starter;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-eventhubs-core;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-eventhubs;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-servicebus-core;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-servicebus-queue;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-servicebus-topic;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-servicebus;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-stream-binder-test;4.0.0-beta.1;4.0.0-beta.1
com.azure.spring:spring-cloud-azure-test-appconfiguration-config;1.0.0;1.0.0
com.azure.spring:spring-cloud-azure-test-parent;1.0.0;1.0.0
Expand Down
14 changes: 2 additions & 12 deletions sdk/boms/spring-cloud-azure-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,7 @@
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-starter-stream-servicebus-queue</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-starter-stream-servicebus-topic</artifactId>
<artifactId>spring-cloud-azure-starter-stream-servicebus</artifactId>
<version>${project.version}</version>
</dependency>

Expand All @@ -218,12 +213,7 @@
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-stream-binder-servicebus-topic</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-stream-binder-servicebus-queue</artifactId>
<artifactId>spring-cloud-azure-stream-binder-servicebus</artifactId>
<version>${project.version}</version>
</dependency>

Expand Down
52 changes: 22 additions & 30 deletions sdk/spring/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,12 @@ trigger:
- sdk/spring/spring-cloud-azure-starter-integration-servicebus/pom.xml
- sdk/spring/spring-cloud-azure-starter-integration-storage-queue/pom.xml
- sdk/spring/spring-cloud-azure-starter-stream-eventhubs/pom.xml
- sdk/spring/spring-cloud-azure-starter-stream-servicebus-queue/pom.xml
- sdk/spring/spring-cloud-azure-starter-stream-servicebus-topic/pom.xml
- sdk/spring/spring-cloud-azure-starter-stream-servicebus/pom.xml
- sdk/spring/spring-cloud-azure-starter/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-eventhubs-core/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-eventhubs/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-servicebus-core/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-servicebus-queue/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-servicebus-topic/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-servicebus/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-test/pom.xml
- sdk/spring/spring-cloud-azure-test-servicebus-binder/pom.xml

Expand Down Expand Up @@ -107,14 +105,12 @@ pr:
- sdk/spring/spring-cloud-azure-starter-integration-servicebus/pom.xml
- sdk/spring/spring-cloud-azure-starter-integration-storage-queue/pom.xml
- sdk/spring/spring-cloud-azure-starter-stream-eventhubs/pom.xml
- sdk/spring/spring-cloud-azure-starter-stream-servicebus-queue/pom.xml
- sdk/spring/spring-cloud-azure-starter-stream-servicebus-topic/pom.xml
- sdk/spring/spring-cloud-azure-starter-stream-servicebus/pom.xml
- sdk/spring/spring-cloud-azure-starter/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-eventhubs-core/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-eventhubs/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-servicebus-core/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-servicebus-queue/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-servicebus-topic/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-servicebus/pom.xml
- sdk/spring/spring-cloud-azure-stream-binder-test/pom.xml
- sdk/spring/spring-cloud-azure-test-servicebus-binder/pom.xml

Expand Down Expand Up @@ -269,40 +265,32 @@ extends:
skipPublishDocMs: true
skipUpdatePackageJson: true
skipVerifyChangelog: true
- name: spring-cloud-azure-stream-binder-servicebus-core
groupId: com.azure.spring
safeName: springcloudazurestreambinderservicebuscore
skipPublishDocMs: true
- name: spring-cloud-azure-stream-binder-test
groupId: com.azure.spring
safeName: springcloudazurestreambindertest
skipPublishDocMs: true
- name: spring-cloud-azure-stream-binder-servicebus-topic
groupId: com.azure.spring
safeName: springcloudazurestreambinderservicebustopic
skipPublishDocMs: true
- name: spring-cloud-azure-starter-stream-servicebus-topic
- name: spring-cloud-azure-starter-stream-eventhubs
groupId: com.azure.spring
safeName: springcloudazurestarterstreamservicebustopic
safeName: springcloudazurestarterstreameventhubs
skipPublishDocMs: true
skipUpdatePackageJson: true
skipVerifyChangelog: true
- name: spring-cloud-azure-stream-binder-servicebus-queue
groupId: com.azure.spring
safeName: springcloudazurestreambinderservicebusqueue
skipPublishDocMs: true
- name: spring-cloud-azure-starter-stream-servicebus-topic
- name: spring-cloud-azure-starter-stream-servicebus
groupId: com.azure.spring
safeName: springcloudazurestarterstreamservicebustopic
safeName: springcloudazurestarterstreamservicebus
skipPublishDocMs: true
skipUpdatePackageJson: true
skipVerifyChangelog: true
- name: spring-cloud-azure-starter-stream-eventhubs
- name: spring-cloud-azure-starter-storage-queue
groupId: com.azure.spring
safeName: springcloudazurestarterstreameventhubs
safeName: springcloudazurestarterstoragequeue
skipPublishDocMs: true
skipUpdatePackageJson: true
skipVerifyChangelog: true
- name: spring-cloud-azure-stream-binder-servicebus-core
groupId: com.azure.spring
safeName: springcloudazurestreambinderservicebuscore
skipPublishDocMs: true
- name: spring-cloud-azure-stream-binder-servicebus
groupId: com.azure.spring
safeName: springcloudazurestreambinderservicebus
skipPublishDocMs: true
- name: spring-cloud-azure-stream-binder-eventhubs
groupId: com.azure.spring
safeName: springcloudazurestreambindereventhubs
Expand All @@ -311,3 +299,7 @@ extends:
groupId: com.azure.spring
safeName: springcloudazurestreambindereventhubscore
skipPublishDocMs: true
- name: spring-cloud-azure-stream-binder-test
groupId: com.azure.spring
safeName: springcloudazurestreambindertest
skipPublishDocMs: true
24 changes: 7 additions & 17 deletions sdk/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
<module>spring-cloud-azure-stream-binder-eventhubs-core</module>
<module>spring-cloud-azure-stream-binder-eventhubs</module>
<module>spring-cloud-azure-stream-binder-servicebus-core</module>
<module>spring-cloud-azure-stream-binder-servicebus-queue</module>
<module>spring-cloud-azure-stream-binder-servicebus-topic</module>
<module>spring-cloud-azure-stream-binder-servicebus</module>
</modules>
<dependencies>
<dependency>
Expand Down Expand Up @@ -112,13 +111,8 @@
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-stream-binder-servicebus-queue</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-stream-binder-servicebus-queue;current} -->
</dependency>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-stream-binder-servicebus-topic</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-stream-binder-servicebus-topic;current} -->
<artifactId>spring-cloud-azure-stream-binder-servicebus</artifactId>
<version>4.0.0-beta.1</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-stream-binder-servicebus;current} -->
</dependency>
</dependencies>

Expand Down Expand Up @@ -190,14 +184,12 @@
<module>spring-cloud-azure-starter-integration-servicebus</module>
<module>spring-cloud-azure-starter-integration-storage-queue</module>
<module>spring-cloud-azure-starter-stream-eventhubs</module>
<module>spring-cloud-azure-starter-stream-servicebus-queue</module>
<module>spring-cloud-azure-starter-stream-servicebus-topic</module>
<module>spring-cloud-azure-starter-stream-servicebus</module>
<module>spring-cloud-azure-starter</module>
<module>spring-cloud-azure-stream-binder-eventhubs-core</module>
<module>spring-cloud-azure-stream-binder-eventhubs</module>
<module>spring-cloud-azure-stream-binder-servicebus-core</module>
<module>spring-cloud-azure-stream-binder-servicebus-queue</module>
<module>spring-cloud-azure-stream-binder-servicebus-topic</module>
<module>spring-cloud-azure-stream-binder-servicebus</module>
<module>spring-cloud-azure-stream-binder-test</module>
<module>spring-cloud-azure-test-servicebus-binder</module>
</modules>
Expand Down Expand Up @@ -243,11 +235,9 @@
<module>spring-cloud-azure-stream-binder-eventhubs-core</module>
<module>spring-cloud-azure-stream-binder-eventhubs</module>
<module>spring-cloud-azure-stream-binder-servicebus-core</module>
<module>spring-cloud-azure-stream-binder-servicebus-queue</module>
<module>spring-cloud-azure-stream-binder-servicebus-topic</module>
<module>spring-cloud-azure-stream-binder-servicebus</module>
<module>spring-cloud-azure-starter-stream-eventhubs</module>
<module>spring-cloud-azure-starter-stream-servicebus-queue</module>
<module>spring-cloud-azure-starter-stream-servicebus-topic</module>
<module>spring-cloud-azure-starter-stream-servicebus</module>
<module>spring-cloud-azure-stream-binder-test</module>
</modules>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ $springtCloudReleaseVersion = "2.6.0"
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-starter-stream-eventhubs
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-stream-binder-eventhubs-core
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-stream-binder-servicebus-core
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-stream-binder-servicebus-queue
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-starter-stream-servicebus-queue
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-stream-binder-servicebus-topic
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-starter-stream-servicebus-topic
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-stream-binder-servicebus
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-starter-stream-servicebus
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion spring-cloud-azure-stream-binder-test
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion azure-spring-integration-core
. ${PSScriptRoot}\Update-DevOps-Release-WorkItem-Util.ps1 $releaseDate $serviceDirectory $springtCloudReleaseVersion azure-spring-integration-eventhubs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ public abstract class AzureContextUtils {

public static final String DEFAULT_TOKEN_CREDENTIAL_BEAN_NAME = "springDefaultAzureCredential";

public static final String SERVICE_BUS_CONSUMER_CLIENT_BUILDER_FACTORY_BEAN_NAME =
"SERVICE_BUS_CONSUMER_CLIENT_BUILDER_FACTORY_BEAN_NAME";
public static final String SERVICE_BUS_CONSUMER_CLIENT_BUILDER_BEAN_NAME =
"SERVICE_BUS_CONSUMER_CLIENT_BUILDER_BEAN_NAME";

public static final String SERVICE_BUS_PRODUCER_CLIENT_BUILDER_FACTORY_BEAN_NAME =
"SERVICE_BUS_PRODUCER_CLIENT_BUILDER_FACTORY_BEAN_NAME";
public static final String SERVICE_BUS_PRODUCER_CLIENT_BUILDER_BEAN_NAME =
"SERVICE_BUS_PRODUCER_CLIENT_BUILDER_BEAN_NAME";

public static final String SERVICE_BUS_PROCESSOR_CLIENT_BUILDER_FACTORY_BEAN_NAME =
"SERVICE_BUS_PROCESSOR_CLIENT_BUILDER_FACTORY_BEAN_NAME";
public static final String SERVICE_BUS_PROCESSOR_CLIENT_BUILDER_BEAN_NAME =
"SERVICE_BUS_PROCESSOR_CLIENT_BUILDER_BEAN_NAME";


public static final String EVENT_HUB_CONSUMER_CLIENT_BUILDER_FACTORY_BEAN_NAME =
"EVENT_HUB_CONSUMER_CLIENT_BUILDER_FACTORY_BEAN_NAME";
public static final String EVENT_HUB_CONSUMER_CLIENT_BUILDER_BEAN_NAME =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

package com.azure.spring.cloud.autoconfigure.messaging;

import com.azure.spring.cloud.autoconfigure.servicebus.AzureServiceBusMessagingAutoConfiguration;
import com.azure.spring.cloud.autoconfigure.eventhubs.AzureEventHubsMessagingAutoConfiguration;
import com.azure.spring.cloud.autoconfigure.servicebus.AzureServiceBusTopicOperationAutoConfiguration;
import com.azure.spring.messaging.annotation.EnableAzureMessaging;
import com.azure.spring.messaging.config.AzureListenerAnnotationBeanPostProcessor;
import com.azure.spring.messaging.container.DefaultAzureListenerContainerFactory;
Expand All @@ -25,7 +25,7 @@
@ConditionalOnClass(EnableAzureMessaging.class)
@AutoConfigureAfter({
AzureEventHubsMessagingAutoConfiguration.class,
AzureServiceBusTopicOperationAutoConfiguration.class
AzureServiceBusMessagingAutoConfiguration.class
})
@ConditionalOnBean(SubscribeByGroupOperation.class)
public class AzureMessagingListenerAutoConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
import com.azure.spring.cloud.autoconfigure.condition.ConditionalOnMissingProperty;
import com.azure.spring.cloud.autoconfigure.servicebus.properties.AzureServiceBusProperties;
import com.azure.spring.cloud.resourcemanager.connectionstring.ServiceBusArmConnectionStringProvider;
import com.azure.spring.servicebus.provisioning.ServiceBusQueueProvisioner;
import com.azure.spring.servicebus.provisioning.ServiceBusTopicProvisioner;
import com.azure.spring.servicebus.provisioning.arm.DefaultServiceBusQueueProvisioner;
import com.azure.spring.servicebus.provisioning.arm.DefaultServiceBusTopicProvisioner;
import com.azure.spring.servicebus.provisioning.ServiceBusProvisioner;
import com.azure.spring.servicebus.provisioning.arm.DefaultServiceBusProvisioner;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
Expand Down Expand Up @@ -40,14 +38,8 @@ public AzureServiceBusResourceManagerAutoConfiguration(AzureResourceManager azur

@Bean
@ConditionalOnMissingBean
public ServiceBusQueueProvisioner serviceBusQueueProvisioner() {
return new DefaultServiceBusQueueProvisioner(this.azureResourceManager, this.serviceBusProperties.getResource());
}

@Bean
@ConditionalOnMissingBean
public ServiceBusTopicProvisioner serviceBusTopicProvisioner() {
return new DefaultServiceBusTopicProvisioner(this.azureResourceManager, this.serviceBusProperties.getResource());
public ServiceBusProvisioner serviceBusProvisioner() {
return new DefaultServiceBusProvisioner(this.azureResourceManager, this.serviceBusProperties.getResource());
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
AzureServiceBusClientBuilderConfiguration.class,
AzureServiceBusProducerClientConfiguration.class,
AzureServiceBusConsumerClientConfiguration.class,
AzureServiceBusProcessorConfiguration.class
AzureServiceBusProcessorClientConfiguration.class
})
public class AzureServiceBusAutoConfiguration extends AzureServiceConfigurationBase {

Expand Down
Loading