Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Tomasz TylendaTomasz TylendaReporter
Erwan SérandourErwan SérandourLabels
Start date
Feb 06, 2025Components
Sprint
NoneFix versions
Priority
Normal
Details
Details
Assignee
Tomasz Tylenda
Tomasz TylendaReporter
Erwan Sérandour
Erwan SérandourLabels
Start date
Feb 06, 2025
Components
Sprint
None
Fix versions
Priority

Sentry
Sentry
Sentry
Created February 3, 2025 at 9:49 AM
Updated February 13, 2025 at 10:34 AM
Resolved February 13, 2025 at 10:34 AM
Spring provides the
@EventListener
annotation as a simpler alternative to implementing theApplicationListener
interface for handling events. The@EventListener
annotation registers a method as an event handler.This allows to skip the implementation of the
ApplicationListener
interface, making it easier to handle events.The
@EventListener
annotation can only be used on methods that have at most one parameter, which should be the specific event that we want to handle.To listen to several types of events, use the
classes
argument of the@EventListener
annotation.This rule raises an issue on all methods annotated with
@EventListener
that have more than one parameter.