Commit 93a82b7
committed
Simplify CloudEvent formatting with SDK strategies
Replace custom CloudEvent converter infrastructure with direct
CloudEvents SDK format implementations.
Key changes:
- Replace `FormatStrategy` pattern-based approach with direct
`EventFormatProvider` integration from CloudEvents SDK
- Remove custom converter classes (`CloudEventMessageConverter`,
`MessageBinaryMessageReader`, `MessageBuilderMessageWriter`)
- Simplify transformer to use Expression-based configuration for
all CloudEvent attributes (id, source, type, dataSchema, subject)
- Add validation for required CloudEvent attributes with clear
error messages when expressions evaluate to null or empty values
- Update documentation to reflect Expression-based API and
byte[] payload requirement
- Consolidate tests by removing coverage for deleted converter
infrastructure1 parent 19b057a commit 93a82b7
File tree
16 files changed
+411
-1405
lines changed- spring-integration-cloudevents/src
- main/java/org/springframework/integration/cloudevents
- transformer
- strategies
- cloudeventconverter
- test/java/org/springframework/integration/cloudevents/transformer
- strategies
- cloudeventconverter
- src/reference/antora/modules/ROOT/pages
16 files changed
+411
-1405
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
495 | 504 | | |
496 | 505 | | |
497 | 506 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments