Skip to content

Gateway proxies should support the @Payload annotation on parameters [INT-894] #4900

@spring-operator

Description

@spring-operator

Mark Fisher opened INT-894 and commented

Example:

public interface TestGateway {

    void sayHello(@Payload String name);

}

When the Message is created the annotated value will become the payload. Is there any value in supporting an expression in the annotation like we do for mapping from Messages to arguments, e.g.

void sayHello(@Payload("username") AccountProfile accountProfile);

... probably not.

NOTE: there can be only one per method, and there can only be one of @Payload/@Header/@Headers on any given parameter.


No further details from INT-894

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions