spring-projects / spring-projects/spring-data-commons
Improve support for immutability for @AfterEventPublication [DATACMNS-1644]
Open
@odrotbohm is already working on this.
Since Dec 30, 2020.
in: core
in: repository
in: web
type: enhancement
- Dominant language
- Java
- Stars
- 838
- Forks
- 730
- PR merge metrics
- No merged PRs in 30d
Description
Oliver Drotbohm opened DATACMNS-1644 and commented
The support to publish domain events from aggregates leverages @AfterDomainEventPublication to trigger event resets in the aggregate. Implementations usually wipe out a collection which assumes mutability of the aggregate.
We could change that by inspecting the return type of the method annotated and use the value returned if it is assignable to the aggregate type
No further details from DATACMNS-1644
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.