Java Code Examples for org.springframework.integration.handler.BridgeHandler#setOutputChannel()
The following examples show how to use
org.springframework.integration.handler.BridgeHandler#setOutputChannel() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MessageChannelStreamListenerResultAdapter.java From spring-cloud-stream with Apache License 2.0 | 5 votes |
@Override public Closeable adapt(MessageChannel streamListenerResult, MessageChannel bindingTarget) { BridgeHandler handler = new BridgeHandler(); handler.setOutputChannel(bindingTarget); handler.afterPropertiesSet(); ((SubscribableChannel) streamListenerResult).subscribe(handler); return new NoOpCloseeable(); }
Example 2
Source File: TestChannelBinder.java From spring-cloud-stream with Apache License 2.0 | 5 votes |
@Override protected MessageHandler createProducerMessageHandler(ProducerDestination destination, ProducerProperties producerProperties, MessageChannel errorChannel) throws Exception { BridgeHandler handler = new BridgeHandler(); handler.setBeanFactory(this.beanFactory); handler.setOutputChannel( ((SpringIntegrationProducerDestination) destination).getChannel()); return handler; }