diff --git a/docs/developer/decision-records/2025-06-20-listeners-pre-methods/README.md b/docs/developer/decision-records/2025-06-20-listeners-pre-methods/README.md new file mode 100644 index 00000000000..1ec59fa09c6 --- /dev/null +++ b/docs/developer/decision-records/2025-06-20-listeners-pre-methods/README.md @@ -0,0 +1,17 @@ +# Listeners "pre" methods + +## Decision + +We'll deprecate and remove the `pre*` methods in the `ContractNegotiationListener` and `TransferProcessListener` + +## Rationale + +These methods were introduced in a time in which the EDC ecosystem was not yet well shaped to permit adopters to implement +additional missing logic before persistence. +But this extensibility in fact is no more necessary, as the entity should be shaped by the services that are provided out +of the box. +The methods that don't start with `pre*` will be kept, as they are the backbone of the eventing system. + +## Approach + +The `pre*` methods in listeners will be deprecated first and deleted after 2 versions. diff --git a/docs/developer/decision-records/README.md b/docs/developer/decision-records/README.md index 8dba09a72eb..157161e4b80 100644 --- a/docs/developer/decision-records/README.md +++ b/docs/developer/decision-records/README.md @@ -79,4 +79,5 @@ - [2025-03-14 Prioritized Transfer Services](./2025-03-14-prioritized-transfer-services) - [2025-04-15 Contract Agreement policy scope](./2025-04-25-agreement-policy-scope) - [2025-04-30 Finalize phase](./2025-04-30-finalize-phase) -- [2024-06-11 Dataspace Profile Context](2025-05-28-dataspace-profile-context) +- [2025-06-11 Dataspace Profile Context](2025-05-28-dataspace-profile-context) +- [2025-06-20 Listeners "pre" methods](./2025-06-20-listeners-pre-methods)