public final class GlobalChannelInterceptorProcessor extends Object implements BeanFactoryAware, SmartInitializingSingleton, BeanPostProcessor
<channel-interceptor>
or @GlobalChannelInterceptor
)
to message channels beans.Constructor and Description |
---|
GlobalChannelInterceptorProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
addMatchingInterceptors(ChannelInterceptorAware channel,
String beanName)
Add any interceptor whose pattern matches against the channel's name.
|
void |
afterSingletonsInstantiated() |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
void |
setBeanFactory(BeanFactory beanFactory) |
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public void afterSingletonsInstantiated()
afterSingletonsInstantiated
in interface SmartInitializingSingleton
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException
postProcessBeforeInitialization
in interface BeanPostProcessor
BeansException
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException
postProcessAfterInitialization
in interface BeanPostProcessor
BeansException
public void addMatchingInterceptors(ChannelInterceptorAware channel, String beanName)
channel
- the message channel to add interceptors.beanName
- the message channel bean name to match the pattern.