Skip to content

Commit a80c5fc

Browse files
hrybssbrannen
authored andcommitted
Improve @eventlistener documentation in reference manual
Closes gh-26785
1 parent 04ce8e0 commit a80c5fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -10652,7 +10652,7 @@ 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 public method of a managed
10655+
As of Spring 4.2, you can register an event listener on any method of a managed
1065610656
bean by using the `@EventListener` annotation. The `BlockedListNotifier` can be rewritten as
1065710657
follows:
1065810658

@@ -10793,7 +10793,7 @@ NOTE: This feature is not supported for
1079310793
<<context-functionality-events-async, asynchronous listeners>>.
1079410794

1079510795
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` of events
10796+
method above. If you need to publish several events, you can return a `Collection` or an `array` of events
1079710797
instead.
1079810798

1079910799

0 commit comments

Comments
 (0)