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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMatchingInterceptors
(InterceptableChannel channel, String beanName) Add any interceptor whose pattern matches against the channel's name.void
postProcessAfterInitialization
(Object bean, String beanName) void
setBeanFactory
(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
-
GlobalChannelInterceptorProcessor
public GlobalChannelInterceptorProcessor()
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiated
in interfaceSmartInitializingSingleton
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitialization
in 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.
-