Class MessagingAnnotationBeanPostProcessor
java.lang.Object
org.springframework.integration.config.MessagingAnnotationBeanPostProcessor
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanPostProcessor
,SmartInitializingSingleton
public class MessagingAnnotationBeanPostProcessor
extends Object
implements BeanPostProcessor, BeanFactoryAware, SmartInitializingSingleton
An infrastructure
BeanPostProcessor
implementation that processes method-level
messaging annotations such as @Transformer, @Splitter, @Router, and @Filter.- Since:
- 6.2
- Author:
- Artem Bilan
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
-
Constructor Summary
ConstructorDescriptionMessagingAnnotationBeanPostProcessor
(Map<Class<? extends Annotation>, MethodAnnotationPostProcessor<?>> postProcessors) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
generateBeanName
(String originalBeanName, Method method, Class<? extends Annotation> annotationType) protected static List<MessagingAnnotationBeanPostProcessor.MessagingMetaAnnotation>
obtainMessagingAnnotations
(Set<Class<? extends Annotation>> postProcessors, MergedAnnotations annotations, String identified) postProcessAfterInitialization
(Object bean, String beanName) void
setBeanFactory
(BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
MessagingAnnotationBeanPostProcessor
public MessagingAnnotationBeanPostProcessor(Map<Class<? extends Annotation>, MethodAnnotationPostProcessor<?>> postProcessors)
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
generateBeanName
protected String generateBeanName(String originalBeanName, Method method, Class<? extends Annotation> annotationType) -
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiated
in interfaceSmartInitializingSingleton
-
obtainMessagingAnnotations
protected static List<MessagingAnnotationBeanPostProcessor.MessagingMetaAnnotation> obtainMessagingAnnotations(Set<Class<? extends Annotation>> postProcessors, MergedAnnotations annotations, String identified)
-