@Override protected void configureChannels(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { String channelName = element.getAttribute("channel"); if (!StringUtils.hasText(channelName)) { channelName = this.createDirectChannel(element, parserContext); } builder.addPropertyReference("outputChannel", channelName); }
@Override public void init() { this.registerBeanDefinitionParser("channel", new AmqpChannelParser()); this.registerBeanDefinitionParser("publish-subscribe-channel", new AmqpChannelParser()); this.registerBeanDefinitionParser("inbound-channel-adapter", new AmqpInboundChannelAdapterParser()); this.registerBeanDefinitionParser("inbound-gateway", new AmqpInboundGatewayParser()); this.registerBeanDefinitionParser("outbound-channel-adapter", new AmqpOutboundChannelAdapterParser()); this.registerBeanDefinitionParser("outbound-gateway", new AmqpOutboundGatewayParser()); this.registerBeanDefinitionParser("outbound-async-gateway", new AmqpOutboundGatewayParser()); }
@Override public void init() { this.registerBeanDefinitionParser("channel", new AmqpChannelParser()); this.registerBeanDefinitionParser("publish-subscribe-channel", new AmqpChannelParser()); this.registerBeanDefinitionParser("inbound-channel-adapter", new AmqpInboundChannelAdapterParser()); this.registerBeanDefinitionParser("inbound-gateway", new AmqpInboundGatewayParser()); this.registerBeanDefinitionParser("outbound-channel-adapter", new AmqpOutboundChannelAdapterParser()); this.registerBeanDefinitionParser("outbound-gateway", new AmqpOutboundGatewayParser()); this.registerBeanDefinitionParser("outbound-async-gateway", new AmqpOutboundGatewayParser()); }
@Override protected void configureChannels(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { String channelName = element.getAttribute("channel"); if (!StringUtils.hasText(channelName)) { channelName = this.createDirectChannel(element, parserContext); } builder.addPropertyReference("outputChannel", channelName); }