Skip to content

Commit 9c969f9

Browse files
committed
Polish "Remove Spring Pulsar Reactive support"
See gh-47707
1 parent 4aaa1df commit 9c969f9

File tree

7 files changed

+388
-465
lines changed

7 files changed

+388
-465
lines changed

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/messaging/pulsar.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Spring Boot will auto-configure and register the Spring for Apache Pulsar compon
88
There is the `spring-boot-starter-pulsar` starter for conveniently collecting the dependencies for use.
99

1010

11+
1112
[[messaging.pulsar.connecting]]
1213
== Connecting to Pulsar
1314

@@ -67,6 +68,7 @@ You can follow {url-spring-pulsar-docs}/reference/pulsar/pulsar-client.html#tls-
6768
For complete details on the client and authentication see the Spring for Apache Pulsar {url-spring-pulsar-docs}/reference/pulsar/pulsar-client.html[reference documentation].
6869

6970

71+
7072
[[messaging.pulsar.admin]]
7173
== Connecting to Pulsar Administration
7274

@@ -107,6 +109,8 @@ You can also pass in a javadoc:org.springframework.pulsar.core.ProducerBuilderCu
107109

108110
If you need more control over the message being sent, you can pass in a javadoc:org.springframework.pulsar.core.TypedMessageBuilderCustomizer[] when sending a message.
109111

112+
113+
110114
[[messaging.pulsar.receiving]]
111115
== Receiving a Message
112116

@@ -124,6 +128,8 @@ You can also customize a single listener by setting the `consumerCustomizer` att
124128

125129
If you need more control over the actual container factory configuration, consider registering one or more `PulsarContainerFactoryCustomizer<ConcurrentPulsarListenerContainerFactory<?>>` beans.
126130

131+
132+
127133
[[messaging.pulsar.reading]]
128134
== Reading a Message
129135

@@ -144,7 +150,6 @@ You can also customize a single listener by setting the `readerCustomizer` attri
144150

145151
If you need more control over the actual container factory configuration, consider registering one or more `PulsarContainerFactoryCustomizer<DefaultPulsarReaderContainerFactory<?>>` beans.
146152

147-
148153
TIP: For more details on any of the above components and to discover other available features, see the Spring for Apache Pulsar {url-spring-pulsar-docs}[reference documentation].
149154

150155

module/spring-boot-pulsar/src/dockerTest/java/org/springframework/boot/autoconfigure/pulsar/PulsarAutoConfigurationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void sendAndReceive(@Autowired TestService testService) throws InterruptedExcept
7575
}
7676

7777
@Configuration(proxyBeanMethods = false)
78-
@ImportAutoConfiguration({ PulsarAutoConfiguration.class })
78+
@ImportAutoConfiguration(PulsarAutoConfiguration.class)
7979
@Import(TestService.class)
8080
static class TestConfiguration {
8181

module/spring-boot-pulsar/src/main/java/org/springframework/boot/pulsar/autoconfigure/PulsarAutoConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
import org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProperty;
3939
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
4040
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
41+
import org.springframework.boot.context.properties.EnableConfigurationProperties;
4142
import org.springframework.boot.pulsar.autoconfigure.PulsarProperties.Defaults.SchemaInfo;
4243
import org.springframework.boot.pulsar.autoconfigure.PulsarProperties.Defaults.TypeMapping;
4344
import org.springframework.boot.thread.Threading;
4445
import org.springframework.boot.util.LambdaSafe;
4546
import org.springframework.context.annotation.Bean;
4647
import org.springframework.context.annotation.Configuration;
47-
import org.springframework.context.annotation.Import;
4848
import org.springframework.context.annotation.Scope;
4949
import org.springframework.core.env.Environment;
5050
import org.springframework.core.task.VirtualThreadTaskExecutor;
@@ -96,6 +96,7 @@
9696
*/
9797
@AutoConfiguration
9898
@ConditionalOnClass({ PulsarClient.class, PulsarTemplate.class })
99+
@EnableConfigurationProperties(PulsarProperties.class)
99100
public final class PulsarAutoConfiguration {
100101

101102
private final PulsarProperties properties;

0 commit comments

Comments
 (0)