org.springframework.integration.channel.interceptor
Class ChannelInterceptorAdapter

java.lang.Object
  extended by org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter
All Implemented Interfaces:
ChannelInterceptor
Direct Known Subclasses:
MessageSelectingInterceptor, MessageTransformingChannelInterceptor, WireTap

public class ChannelInterceptorAdapter
extends java.lang.Object
implements ChannelInterceptor

A ChannelInterceptor with no-op method implementations so that subclasses do not have to implement all of the interface's methods.

Author:
Mark Fisher

Constructor Summary
ChannelInterceptorAdapter()
           
 
Method Summary
 Message<?> postReceive(Message<?> message, MessageChannel channel)
           
 void postSend(Message<?> message, MessageChannel channel, boolean sent)
           
 boolean preReceive(MessageChannel channel)
           
 Message<?> preSend(Message<?> message, MessageChannel channel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelInterceptorAdapter

public ChannelInterceptorAdapter()
Method Detail

preSend

public Message<?> preSend(Message<?> message,
                          MessageChannel channel)
Specified by:
preSend in interface ChannelInterceptor

postSend

public void postSend(Message<?> message,
                     MessageChannel channel,
                     boolean sent)
Specified by:
postSend in interface ChannelInterceptor

preReceive

public boolean preReceive(MessageChannel channel)
Specified by:
preReceive in interface ChannelInterceptor

postReceive

public Message<?> postReceive(Message<?> message,
                              MessageChannel channel)
Specified by:
postReceive in interface ChannelInterceptor