Skip to content

Commit dc55da0

Browse files
committed
Polishing
1 parent 5d7fb1a commit dc55da0

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

spring-jms/src/main/java/org/springframework/jms/config/JmsListenerEndpointRegistry.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@
4444
* lifecycle of the listener containers, in particular within the lifecycle
4545
* of the application context.
4646
*
47-
* <p>Contrary to {@link MessageListenerContainer MessageListenerContainers} created manually, listener
48-
* containers managed by registry are not beans in the application context and
49-
* are not candidates for autowiring. Use {@link #getListenerContainers()} if
50-
* you need to access this registry's listener containers for management purposes.
51-
* If you need to access to a specific message listener container, use
52-
* {@link #getListenerContainer(String)} with the id of the endpoint.
47+
* <p>Contrary to {@link MessageListenerContainer MessageListenerContainers}
48+
* created manually, listener containers managed by registry are not beans
49+
* in the application context and are not candidates for autowiring.
50+
* Use {@link #getListenerContainers()} if you need to access this registry's
51+
* listener containers for management purposes. If you need to access to a
52+
* specific message listener container, use {@link #getListenerContainer(String)}
53+
* with the id of the endpoint.
5354
*
5455
* @author Stephane Nicoll
5556
* @author Juergen Hoeller

spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandler.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public void setEmbeddedValueResolver(StringValueResolver resolver) {
251251

252252
/**
253253
* Configure a {@link MessageHeaderInitializer} to pass on to
254-
* {@link org.springframework.messaging.handler.invocation.HandlerMethodReturnValueHandler org.springframework.messaging.handler.invocation.HandlerMethodReturnValueHandlers}
254+
* {@link HandlerMethodReturnValueHandler HandlerMethodReturnValueHandlers}
255255
* that send messages from controller return values.
256256
* <p>By default, this property is not set.
257257
*/
@@ -332,7 +332,8 @@ protected List<? extends HandlerMethodReturnValueHandler> initReturnValueHandler
332332

333333
// Annotation-based return value types
334334

335-
SendToMethodReturnValueHandler sendToHandler = new SendToMethodReturnValueHandler(this.brokerTemplate, true);
335+
SendToMethodReturnValueHandler sendToHandler =
336+
new SendToMethodReturnValueHandler(this.brokerTemplate, true);
336337
sendToHandler.setHeaderInitializer(this.headerInitializer);
337338
handlers.add(sendToHandler);
338339

@@ -341,10 +342,11 @@ protected List<? extends HandlerMethodReturnValueHandler> initReturnValueHandler
341342
subscriptionHandler.setHeaderInitializer(this.headerInitializer);
342343
handlers.add(subscriptionHandler);
343344

344-
// custom return value types
345+
// Custom return value types
346+
345347
handlers.addAll(getCustomReturnValueHandlers());
346348

347-
// catch-all
349+
// Catch-all
348350

349351
sendToHandler = new SendToMethodReturnValueHandler(this.brokerTemplate, false);
350352
sendToHandler.setHeaderInitializer(this.headerInitializer);

0 commit comments

Comments
 (0)