Class MessagingAnnotationPostProcessor
java.lang.Object
org.springframework.integration.config.MessagingAnnotationPostProcessor
- All Implemented Interfaces:
BeanFactoryPostProcessor
,BeanDefinitionRegistryPostProcessor
public class MessagingAnnotationPostProcessor
extends Object
implements BeanDefinitionRegistryPostProcessor
A
BeanPostProcessor
implementation that processes method-level
messaging annotations such as @Transformer, @Splitter, @Router, and @Filter.- Author:
- Mark Fisher, Marius Bogoevici, Artem Bilan, Gary Russell, Rick Hogge
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
voidaddMessagingAnnotationPostProcessor
(Class<A> annotation, MethodAnnotationPostProcessor<A> postProcessor) protected BeanDefinitionRegistry
protected ConfigurableListableBeanFactory
protected Map<Class<? extends Annotation>,
MethodAnnotationPostProcessor<?>> The factory method forMessagingAnnotationBeanPostProcessor
based on the environment from thisMessagingAnnotationPostProcessor
.void
void
postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) protected Map<Class<? extends Annotation>,
MethodAnnotationPostProcessor<?>>
-
Constructor Details
-
MessagingAnnotationPostProcessor
public MessagingAnnotationPostProcessor()
-
-
Method Details
-
postProcessBeanDefinitionRegistry
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException - Specified by:
postProcessBeanDefinitionRegistry
in interfaceBeanDefinitionRegistryPostProcessor
- Throws:
BeansException
-
messagingAnnotationBeanPostProcessor
The factory method forMessagingAnnotationBeanPostProcessor
based on the environment from thisMessagingAnnotationPostProcessor
.- Returns:
- the
MessagingAnnotationBeanPostProcessor
instance based onpostProcessors
. - Since:
- 6.2
-
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException - Specified by:
postProcessBeanFactory
in interfaceBeanDefinitionRegistryPostProcessor
- Specified by:
postProcessBeanFactory
in interfaceBeanFactoryPostProcessor
- Throws:
BeansException
-
getBeanFactory
-
getBeanDefinitionRegistry
-
setupCustomPostProcessors
protected Map<Class<? extends Annotation>,MethodAnnotationPostProcessor<?>> setupCustomPostProcessors() -
addMessagingAnnotationPostProcessor
public <A extends Annotation> void addMessagingAnnotationPostProcessor(Class<A> annotation, MethodAnnotationPostProcessor<A> postProcessor) -
getPostProcessors
-