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 voidaddMatchingInterceptors(org.springframework.messaging.support.InterceptableChannel channel, java.lang.String beanName)Add any interceptor whose pattern matches against the channel's name.voidafterSingletonsInstantiated()java.lang.ObjectpostProcessAfterInitialization(java.lang.Object bean, java.lang.String beanName)voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
Constructor Details
-
GlobalChannelInterceptorProcessor
public GlobalChannelInterceptorProcessor()
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceorg.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:
postProcessAfterInitializationin interfaceorg.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.
-