Example usage for org.springframework.integration.channel AbstractMessageChannel addInterceptor

List of usage examples for org.springframework.integration.channel AbstractMessageChannel addInterceptor

Introduction

In this page you can find the example usage for org.springframework.integration.channel AbstractMessageChannel addInterceptor.

Prototype

@Override
public void addInterceptor(int index, ChannelInterceptor interceptor) 

Source Link

Document

Add a channel interceptor to the specified index of the list.

Usage

From source file:org.thingsplode.server.BusConfig.java

@Bean
@Description("Entry to the messaging system through the gateway for requests.")
public MessageChannel requestChannel() {
    AbstractMessageChannel ch = new DirectChannel();
    ch.addInterceptor(0, channelLoggingInterceptor());
    return ch;/*  ww w.  j  a v  a  2  s  . c o m*/
}

From source file:org.thingsplode.server.BusConfig.java

@Bean
@Description("Entry to the messaging system through the gateway for sync messages.")
public MessageChannel syncChannel() {
    AbstractMessageChannel ch = new DirectChannel();
    ch.addInterceptor(0, channelLoggingInterceptor());
    return ch;// w  w  w  . jav  a2  s .c om
}