Skip to content

ApplicationListener-like annotation for consuming application events [SPR-11622] #16245

Closed
@spring-projects-issues

Description

@spring-projects-issues

Martin Krüger opened SPR-11622 and commented

It would be nice to have annotations instead of having to implement ApplicationListener<E extends ApplicationEvent>, for example:

public class MyListener {

    @Listen
    public void onDelete(DeleteEvent event) {}

    @Listen
    public void onAdd(AddEvent event) {}

}

The semantics are the same as for ApplicationListener, but multiple event types can be supported in a single class.


Issue Links:

Referenced from: commits f0fca89

1 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions