Skip to content

Make @Payload as ElementType.METHOD too [SPR-12071] #16687

@spring-projects-issues

Description

@spring-projects-issues

Artem Bilan opened SPR-12071 and commented

Since Spring Integration is based on Spring Messaging there is no reason to have duplications of the same annotations.
@Header can be supported as is, but @Payload in Spring Integration can be configured on method level to be applied for the return value in case of @Publisher, or for <gateway>'s interface methods without arguments.

We are going to deprecate those annotations in the SI and just rely on these Messaging annotations, but to have more smooth migration we have to avoid breaking changes.

That's why we need this improvement now.

Thanks in advance


Issue Links:

  • INT-3492 Deprecate @Payload and @Header and rely on similar annotations from the Spring Messaging ("is depended on by")

Referenced from: commits e010309

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions