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

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

Introduction

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

Prototype

public void setResolutionRequired(boolean resolutionRequired) 

Source Link

Document

Specify whether this router should ignore any failure to resolve a channel name to an actual MessageChannel instance when delegating to the ChannelResolver strategy.

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  w w  .j a va2 s .com*/
    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);
    }
}