Class MessagingAnnotationPostProcessor
java.lang.Object
org.springframework.integration.config.MessagingAnnotationPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
,org.springframework.beans.factory.config.BeanPostProcessor
,org.springframework.beans.factory.SmartInitializingSingleton
,org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
public class MessagingAnnotationPostProcessor
extends Object
implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.SmartInitializingSingleton
A
BeanPostProcessor
implementation that processes method-level
messaging annotations such as @Transformer, @Splitter, @Router, and @Filter.-
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 org.springframework.beans.factory.support.BeanDefinitionRegistry
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory
protected Map<Class<? extends Annotation>,
MethodAnnotationPostProcessor<?>> postProcessAfterInitialization
(Object bean, String beanName) void
postProcessBeanDefinitionRegistry
(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) void
postProcessBeanFactory
(org.springframework.beans.factory.config.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
protected final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
MessagingAnnotationPostProcessor
public MessagingAnnotationPostProcessor()
-
-
Method Details
-
postProcessBeanDefinitionRegistry
public void postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanDefinitionRegistry
in interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
- Throws:
org.springframework.beans.BeansException
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanFactory
in interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
- Throws:
org.springframework.beans.BeansException
-
getBeanFactory
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory() -
getBeanDefinitionRegistry
protected org.springframework.beans.factory.support.BeanDefinitionRegistry 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 interfaceorg.springframework.beans.factory.SmartInitializingSingleton
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.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
-