INT-4224: Improve Direct Handler Binding Docs

JIRA: https://jira.spring.io/browse/INT-4224

Explain when `ref` can can be used on certain endpoints.
This commit is contained in:
Gary Russell
2017-02-24 11:51:13 -05:00
committed by Artem Bilan
parent 693adfd774
commit 56f72cb736
6 changed files with 30 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ public abstract class AbstractStandardMessageHandlerFactoryBean
private void checkReuse(AbstractMessageProducingHandler replyHandler) {
Assert.isTrue(!referencedReplyProducers.contains(replyHandler),
"An AbstractReplyProducingMessageHandler may only be referenced once (" +
"An AbstractMessageProducingMessageHandler may only be referenced once (" +
replyHandler.getComponentName() + ") - use scope=\"prototype\"");
referencedReplyProducers.add(replyHandler);
}