Example usage for org.springframework.integration.channel.interceptor MessageSelectingInterceptor MessageSelectingInterceptor

List of usage examples for org.springframework.integration.channel.interceptor MessageSelectingInterceptor MessageSelectingInterceptor

Introduction

In this page you can find the example usage for org.springframework.integration.channel.interceptor MessageSelectingInterceptor MessageSelectingInterceptor.

Prototype

public MessageSelectingInterceptor(MessageSelector... selectors) 

Source Link

Usage

From source file:com.nayidisha.slowglow.config.SpringMessagingConfig.java

/**
 * Wraps our payload type selector as a channel interceptor
 * /*  w w  w . j  ava  2s .  c  o m*/
 * @return
 */
@Bean(name = "messageSelectingInterceptor")
public ChannelInterceptor messageSelectingInterceptor() {
    MessageSelectingInterceptor interceptor = new MessageSelectingInterceptor(payloadTypeSelector());

    return interceptor;
}