Class GlobalChannelInterceptorProcessor
java.lang.Object
org.springframework.integration.config.GlobalChannelInterceptorProcessor
- All Implemented Interfaces:
- AopInfrastructureBean,- Aware,- BeanFactoryAware,- BeanPostProcessor,- SmartInitializingSingleton
public final class GlobalChannelInterceptorProcessor
extends Object
implements BeanFactoryAware, SmartInitializingSingleton, BeanPostProcessor, AopInfrastructureBean
This class applies global interceptors (
<channel-interceptor> or @GlobalChannelInterceptor)
 to message channels beans.- Since:
- 2.0
- Author:
- Oleg Zhurakousky, Mark Fisher, Artem Bilan, Gary Russell, Meherzad Lahewala
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMatchingInterceptors(InterceptableChannel channel, String beanName) Add any interceptor whose pattern matches against the channel's name.voidpostProcessAfterInitialization(Object bean, String beanName) voidsetBeanFactory(BeanFactory beanFactory) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessorpostProcessBeforeInitialization
- 
Constructor Details- 
GlobalChannelInterceptorProcessorpublic GlobalChannelInterceptorProcessor()
 
- 
- 
Method Details- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Throws:
- BeansException
 
- 
afterSingletonsInstantiatedpublic void afterSingletonsInstantiated()- Specified by:
- afterSingletonsInstantiatedin interface- SmartInitializingSingleton
 
- 
postProcessAfterInitialization- Specified by:
- postProcessAfterInitializationin interface- BeanPostProcessor
- Throws:
- BeansException
 
- 
addMatchingInterceptorsAdd 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.
 
 
-