Documentation on @EventListener SpEL features is not very clear [SPR-14812] #19378
The documentation has an example where the condition in an
Backported to: 4.2.9
The text was updated successfully, but these errors were encountered:
Stéphane Nicoll commented
Interesting. I guess you must be complaining about the cache documentation for SpEL as well. That example made the mistake of naming the parameter "event" I guess.
A SpEL expression can be parsed against a root object. That root object can be any pojo and expose whatever contextual property you want. In the case of events, this is EventExpressionRootObject
The section before that table states
Which is basically what I just explained. I should add such "context" is mapped to
I guess the args parameter is rather dumb isn't it? I assumed I started with the idea to support more use cases and never revisited the decision.