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
  • Method Summary

    Modifier and Type Method Description
    boolean shouldIntercept​(java.lang.String beanName, org.springframework.messaging.support.InterceptableChannel channel)  
  • Method Details

    • shouldIntercept

      boolean shouldIntercept​(java.lang.String beanName, org.springframework.messaging.support.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.