Skip to content

Simplify AbstractReplyProducingMessageHandler by removing ReplyMessageHolder [INT-901] #4907

@spring-operator

Description

@spring-operator

Mark Fisher opened INT-901 and commented

For example, the definition of the abstract method for subclasses to implement could change from:

protected abstract void handleRequestMessage(Message<?> requestMessage, ReplyMessageHolder replyMessageHolder);

to the following:

/**
 * Subclasses must implement this method to handle the request Message. The return
 * value may be a Message, a MessageBuilder, or any plain Object. The base class
 * will handle the final creation of a reply Message from any of those starting
 * points. If the return value is null, the Message flow will end here.
 */
protected abstract Object handleRequestMessage(Message<?> requestMessage);

Affects: 2.0 M1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions