Skip to content

Commit 2c32601

Browse files
committed
Add note about using @eventlistener on lazy beans
Closes gh-34057
1 parent ea8b18f commit 2c32601

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

framework-docs/modules/ROOT/pages/core/beans/context-introduction.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,8 @@ Kotlin::
578578
----
579579
======
580580

581+
NOTE: Do not define such beans to be lazy as the `ApplicationContext` will honour that and will not register the method to listen to events.
582+
581583
The method signature once again declares the event type to which it listens,
582584
but, this time, with a flexible name and without implementing a specific listener interface.
583585
The event type can also be narrowed through generics as long as the actual event type

0 commit comments

Comments
 (0)