Fixed issue with target ChannelAdapter when 'channel' is provided but <poller/> is not.

This commit is contained in:
Mark Fisher
2008-08-19 17:05:19 +00:00
parent 17832c2913
commit c00c13bdff

View File

@@ -89,6 +89,9 @@ public class ChannelAdapterParser extends AbstractBeanDefinitionParser {
String pollerBeanName = IntegrationNamespaceUtils.parsePoller(channelName, pollerElement, parserContext);
adapterBuilder.addPropertyReference("source", pollerBeanName);
}
else if (StringUtils.hasText(channelName)) {
adapterBuilder.addPropertyReference("source", channelName);
}
else {
adapterBuilder.addPropertyReference("source",
this.createDirectChannel(element, parserContext));