Class MessagingAnnotationPostProcessor
java.lang.Object
org.springframework.integration.config.MessagingAnnotationPostProcessor
- All Implemented Interfaces:
BeanFactoryPostProcessor
,BeanPostProcessor
,SmartInitializingSingleton
,BeanDefinitionRegistryPostProcessor
public class MessagingAnnotationPostProcessor
extends Object
implements BeanDefinitionRegistryPostProcessor, BeanPostProcessor, SmartInitializingSingleton
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
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final record
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
voidaddMessagingAnnotationPostProcessor
(Class<A> annotation, MethodAnnotationPostProcessor<A> postProcessor) void
protected String
generateBeanName
(String originalBeanName, Method method, Class<? extends Annotation> annotationType) protected BeanDefinitionRegistry
protected ConfigurableListableBeanFactory
protected Map<Class<? extends Annotation>,
MethodAnnotationPostProcessor<?>> postProcessAfterInitialization
(Object bean, String beanName) void
void
postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) postProcessBeforeInitialization
(Object bean, String beanName) protected void
processAnnotationTypeOnMethod
(Object bean, String beanName, Method method, Class<? extends Annotation> annotationType, List<Annotation> annotations) protected Map<Class<? extends Annotation>,
MethodAnnotationPostProcessor<?>>
-
Field Details
-
logger
-
-
Constructor Details
-
MessagingAnnotationPostProcessor
public MessagingAnnotationPostProcessor()
-
-
Method Details
-
postProcessBeanDefinitionRegistry
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException - Specified by:
postProcessBeanDefinitionRegistry
in interfaceBeanDefinitionRegistryPostProcessor
- Throws:
BeansException
-
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException - 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) -
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiated
in interfaceSmartInitializingSingleton
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
processAnnotationTypeOnMethod
protected void processAnnotationTypeOnMethod(Object bean, String beanName, Method method, Class<? extends Annotation> annotationType, List<Annotation> annotations) -
generateBeanName
protected String generateBeanName(String originalBeanName, Method method, Class<? extends Annotation> annotationType) -
getPostProcessors
-