Interface VetoCapableInterceptor

All Known Implementing Classes:
WireTap

public interface VetoCapableInterceptor
ChannelInterceptors implementing this interface can veto global interception of a particular channel. Could be used, for example, when an interceptor itself writes to an output channel (which should not be intercepted with this interceptor).
Since:
4.0
Author:
Gary Russell, Artem Bilan
  • Method Details

    • shouldIntercept

      boolean shouldIntercept​(String beanName, InterceptableChannel channel)
      Parameters:
      beanName - The channel name.
      channel - The channel that is about to be intercepted.
      Returns:
      false if the intercept wishes to veto the interception.