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:
committed by
Artem Bilan
parent
693adfd774
commit
56f72cb736
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user