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

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

Introduction

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

Prototype

@Override
@ManagedAttribute
public void setChannelMappings(Map<String, String> channelMappings) 

Source Link

Document

Provide mappings from channel keys to channel names.

Usage

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

private void configureMappingRouter(AbstractMappingMessageRouter router) {
    if (this.channelMappings != null) {
        router.setChannelMappings(this.channelMappings);
    }//from   w ww  . j a v a2s  . c  o 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);
    }
}