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 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMatchingInterceptors(org.springframework.messaging.support.InterceptableChannel channel, String beanName) Add any interceptor whose pattern matches against the channel's name.voidpostProcessAfterInitialization(Object bean, String beanName) voidsetBeanFactory(org.springframework.beans.factory.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
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 Object postProcessAfterInitialization(Object bean, 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, 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.
-