Class GlobalChannelInterceptorProcessor
java.lang.Object
org.springframework.integration.config.GlobalChannelInterceptorProcessor
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanPostProcessor,SmartInitializingSingleton
public final class GlobalChannelInterceptorProcessor
extends Object
implements BeanFactoryAware, SmartInitializingSingleton, BeanPostProcessor
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 Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
GlobalChannelInterceptorProcessor
public GlobalChannelInterceptorProcessor()
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceSmartInitializingSingleton
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-
addMatchingInterceptors
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.
-