spring-projects / spring-projects/spring-framework

Introduce API to select application listeners [SPR-15441]

Open
#20,002 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: core type: enhancement
Dominant language
Java
Stars
60.2k
Forks
38.8k
Avg merge
5d 2h
Merged PRs (30d)
27

Description

Oliver Drotbohm opened SPR-15441 and commented

It would be cool if there was an API that allowed accessing application event listeners by different criterias. One obvious candidate would be transactional event listeners but also being able to find and them by a concrete method reference would be useful.

This came up in the development of a prototype for persisted domain events that make sure event publications for transactional event listeners don't get lost in case of an application crash after the transaction has completed and before the event has been processed successfully.


Issue Links:

  • #19689 Annotation-based event listener does not receive event published in @PostConstruct
  • #21411 Allow registration of application event listeners in a functional way

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files, tests, or entry points are identified in the issue. Start by reviewing the linked spring-domain-events prototype and related issues #19689 and #21411; done requires a defined API for locating application event listeners by listener type or method reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.