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 (@Transformer, @Splitter, @Router, @Filter etc.) on bean methods.- Since:
- 6.2
- Author:
- Artem Bilan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionMessagingAnnotationBeanPostProcessor(Map<Class<? extends Annotation>, MethodAnnotationPostProcessor<?>> postProcessors) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected StringgenerateBeanName(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) voidsetBeanFactory(BeanFactory beanFactory) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
MessagingAnnotationBeanPostProcessor
public MessagingAnnotationBeanPostProcessor(Map<Class<? extends Annotation>, MethodAnnotationPostProcessor<?>> postProcessors)
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-
generateBeanName
protected String generateBeanName(String originalBeanName, Method method, Class<? extends Annotation> annotationType) -
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceSmartInitializingSingleton
-
obtainMessagingAnnotations
protected static List<MessagingAnnotationBeanPostProcessor.MessagingMetaAnnotation> obtainMessagingAnnotations(Set<Class<? extends Annotation>> postProcessors, MergedAnnotations annotations, String identified)
-