Closed
Description
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:
- Add support for transaction bound application events [SPR-12080] #16696 Add support for transaction bound application events
- Annotation-based event listener does not receive event published in @PostConstruct [SPR-15122] #19689 Annotation-based event listener does not receive event published in
@PostConstruct
- Add support for ordered application event listener [SPR-12663] #17263 Add support for ordered application event listener
- Optimize ordered event listener performance [SPR-14642] #19208 Optimize ordered event listener performance
- Support @Order on ApplicationListeners [SPR-12410] #17018 Support
@Order
on ApplicationListeners - Provide reusable parts of Cache implementation for others [SPR-12622] #17223 Provide reusable parts of Cache implementation for others
Referenced from: commits f0fca89
1 votes, 6 watchers