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 java.lang.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 Summary

    Constructors 
    Constructor Description
    GlobalChannelInterceptorProcessor()  
  • Method Summary

    Modifier and Type Method Description
    void addMatchingInterceptors​(org.springframework.messaging.support.InterceptableChannel channel, java.lang.String beanName)
    Add any interceptor whose pattern matches against the channel's name.
    void afterSingletonsInstantiated()  
    java.lang.Object postProcessAfterInitialization​(java.lang.Object bean, java.lang.String beanName)  
    void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor

    postProcessBeforeInitialization
  • Constructor Details

  • 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 java.lang.Object postProcessAfterInitialization​(java.lang.Object bean, java.lang.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, java.lang.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.