Class GlobalChannelInterceptorProcessor

java.lang.Object
org.springframework.integration.config.GlobalChannelInterceptorProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.SmartInitializingSingleton

public final class GlobalChannelInterceptorProcessor extends Object implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.beans.factory.config.BeanPostProcessor
This class applies global interceptors (<channel-interceptor> or @GlobalChannelInterceptor) to message channels beans.
Since:
2.0
  • Constructor Details

    • GlobalChannelInterceptorProcessor

      public GlobalChannelInterceptorProcessor()
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • afterSingletonsInstantiated

      public void afterSingletonsInstantiated()
      Specified by:
      afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingleton
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • addMatchingInterceptors

      public void addMatchingInterceptors(org.springframework.messaging.support.InterceptableChannel channel, String beanName)
      Add any interceptor whose pattern matches against the channel's name.
      Parameters:
      channel - the message channel to add interceptors.
      beanName - the message channel bean name to match the pattern.