Example usage for org.springframework.integration.router AbstractMappingMessageRouter setChannelResolver

List of usage examples for org.springframework.integration.router AbstractMappingMessageRouter setChannelResolver

Introduction

In this page you can find the example usage for org.springframework.integration.router AbstractMappingMessageRouter setChannelResolver.

Prototype

public void setChannelResolver(DestinationResolver<MessageChannel> channelResolver) 

Source Link

Document

Specify the DestinationResolver strategy to use.

Usage

From source file:org.springframework.integration.config.RouterFactoryBean.java

private void configureMappingRouter(AbstractMappingMessageRouter router) {
    if (this.channelMappings != null) {
        router.setChannelMappings(this.channelMappings);
    }//from www. jav a  2 s . co  m
    if (this.resolutionRequired != null) {
        router.setResolutionRequired(this.resolutionRequired);
    }
    if (this.channelResolver != null) {
        logger.warn(
                "'channel-resolver' attribute has been deprecated in favor of using SpEL via 'expression' attribute");
        router.setChannelResolver(this.channelResolver);
    }
}