Skip to content

Improve support for immutability for @AfterEventPublication [DATACMNS-1644] #2069

Open
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supportin: repositoryRepositories abstractionin: webIntegration with Spring MVCtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions