Skip to content

Commit bcc6171

Browse files
committed
Polish contribution
See gh-26785
1 parent a80c5fc commit bcc6171

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/docs/asciidoc/core/core-beans.adoc

+5-6
Original file line numberDiff line numberDiff line change
@@ -10652,9 +10652,8 @@ architectures that build upon the well-known Spring programming model.
1065210652
[[context-functionality-events-annotation]]
1065310653
==== Annotation-based Event Listeners
1065410654

10655-
As of Spring 4.2, you can register an event listener on any method of a managed
10656-
bean by using the `@EventListener` annotation. The `BlockedListNotifier` can be rewritten as
10657-
follows:
10655+
You can register an event listener on any method of a managed bean by using the
10656+
`@EventListener` annotation. The `BlockedListNotifier` can be rewritten as follows:
1065810657

1065910658
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
1066010659
.Java
@@ -10792,9 +10791,9 @@ method signature to return the event that should be published, as the following
1079210791
NOTE: This feature is not supported for
1079310792
<<context-functionality-events-async, asynchronous listeners>>.
1079410793

10795-
This new method publishes a new `ListUpdateEvent` for every `BlockedListEvent` handled by the
10796-
method above. If you need to publish several events, you can return a `Collection` or an `array` of events
10797-
instead.
10794+
The `handleBlockedListEvent()` method publishes a new `ListUpdateEvent` for every
10795+
`BlockedListEvent` that it handles. If you need to publish several events, you can return
10796+
a `Collection` or an array of events instead.
1079810797

1079910798

1080010799
[[context-functionality-events-async]]

0 commit comments

Comments
 (0)