Skip to content

Commit a864028

Browse files
committed
polishing
1 parent 9845260 commit a864028

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/asciidoc/index.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43045,7 +43045,7 @@ the receiver should wait before giving up waiting for a message.
4304543045
[NOTE]
4304643046
====
4304743047
Spring also supports annotated-listener endpoints through the use of the `@JmsListener`
43048-
and provides an open infrastructure to register endpoints programmatically. This
43048+
annotation and provides an open infrastructure to register endpoints programmatically. This
4304943049
is by far the most convenient way to setup an asynchronous receiver, see
4305043050
<<jms-annotated-support>> for more details.
4305143051
====
@@ -43582,7 +43582,7 @@ These are the main elements you can inject in JMS listener endpoints:
4358243582
* A non-annotated element that is not one of the supported types (i.e. `Message` and
4358343583
`Session`) is considered to be the payload. You can make that explicit by annotating
4358443584
the parameter with `@Payload`. You can also turn on validation by adding an extra
43585-
`@Validated`.
43585+
`@Valid`.
4358643586

4358743587
The ability to inject Spring's `Message` abstraction is particularly useful to benefit
4358843588
from all the information stored in the transport-specific message without relying on
@@ -43595,7 +43595,7 @@ transport-specific API.
4359543595
public void processOrder(Message<Order> order) { ... }
4359643596
----
4359743597

43598-
Handling of method arguments is provided by `DefaultJmsHandlerMethodFactory` which can be
43598+
Handling of method arguments is provided by `DefaultMessageHandlerMethodFactory` which can be
4359943599
further customized to support additional method arguments. The conversion and validation
4360043600
support can be customized there as well.
4360143601

@@ -43611,12 +43611,12 @@ annotate the payload with `@Valid` and configure the necessary validator as foll
4361143611

4361243612
@Override
4361343613
public void configureJmsListeners(JmsListenerEndpointRegistrar registrar) {
43614-
registrar.setJmsHandlerMethodFactory(myJmsHandlerMethodFactory());
43614+
registrar.setMessageHandlerMethodFactory(myJmsHandlerMethodFactory());
4361543615
}
4361643616

4361743617
@Bean
43618-
public DefaultJmsHandlerMethodFactory myJmsHandlerMethodFactory() {
43619-
DefaultJmsHandlerMethodFactory factory = new DefaultJmsHandlerMethodFactory();
43618+
public DefaultMessageHandlerMethodFactory myHandlerMethodFactory() {
43619+
DefaultMessageHandlerMethodFactory factory = new DefaultMessageHandlerMethodFactory();
4362043620
factory.setValidator(myValidator());
4362143621
return factory;
4362243622
}

0 commit comments

Comments
 (0)