List of usage examples for org.springframework.integration.channel AbstractMessageChannel addInterceptor
@Override public void addInterceptor(int index, ChannelInterceptor interceptor)
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 }