@Override public void setOutputChannelName(String outputChannelName) { super.setOutputChannelName(outputChannelName); this.listener.setRequestChannelName(outputChannelName); }
/** * Specify the bean name of the {@code outputChannel} for the * {@link org.springframework.integration.core.MessageProducer} * @param outputChannel the outputChannel bean name. * @return the spec. * @see MessageProducerSupport#setOutputChannelName(String) */ public S outputChannel(String outputChannel) { this.target.setOutputChannelName(outputChannel); return _this(); }
@Bean public MessageProducer producer() { MessageProducerSupport producer = new MessageProducerSupport() { @Override public String getComponentType() { return "test-producer"; } }; producer.setOutputChannelName("one"); producer.setErrorChannelName("myErrors"); return producer; }
@Test public void testWithChannelName() { DirectChannel outChannel = new DirectChannel(); MessageProducerSupport mps = new MessageProducerSupport() { }; mps.setOutputChannelName("foo"); this.context.registerBean("foo", outChannel); this.context.refresh(); mps.setBeanFactory(this.context); mps.afterPropertiesSet(); mps.start(); assertSame(outChannel, mps.getOutputChannel()); }
/** * Specify the bean name of the {@code outputChannel} for the * {@link org.springframework.integration.core.MessageProducer} * @param outputChannel the outputChannel bean name. * @return the spec. * @see MessageProducerSupport#setOutputChannelName(String) */ public S outputChannel(String outputChannel) { this.target.setOutputChannelName(outputChannel); return _this(); }
@Override public void setOutputChannelName(String requestChannelName) { super.setOutputChannelName(requestChannelName); this.listener.setRequestChannelName(requestChannelName); }
/** * Specify the bean name of the {@code outputChannel} for the * {@link org.springframework.integration.core.MessageProducer} * @param outputChannel the outputChannel bean name. * @return the spec. * @since 1.2 * @see MessageProducerSupport#setOutputChannelName(String) */ public S outputChannel(String outputChannel) { target.setOutputChannelName(outputChannel); return _this(); }
@Override public void setOutputChannelName(String requestChannelName) { super.setOutputChannelName(requestChannelName); this.listener.setRequestChannelName(requestChannelName); }
@Override public void setOutputChannelName(String outputChannelName) { super.setOutputChannelName(outputChannelName); this.listener.setRequestChannelName(outputChannelName); }
/** * Specify the bean name of the {@code outputChannel} for the * {@link org.springframework.integration.core.MessageProducer} * @param outputChannel the outputChannel bean name. * @return the spec. * @since 1.2 * @see MessageProducerSupport#setOutputChannelName(String) */ public S outputChannel(String outputChannel) { target.setOutputChannelName(outputChannel); return _this(); }