Skip to content

Documentation on @EventListener SpEL features is not very clear [SPR-14812] #19378

Closed
@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-14812 and commented

The documentation has an example where the condition in an @EventListener uses #event in a SpEL expression. Then there is a table where all the examples are #root.*. What is this #root, and why is it not used in the previous example? What are "the arguments (as array) used for invoking the target"? What is the target - isn't the listener method always invoked with a single argument, which is an event (all the examples look like that)?


Reference URL: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/beans.html#context-functionality-events-annotation

Referenced from: commits 19db042, 0254102, 196200b

Backported to: 4.2.9

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions