Class InboundChannelAdapterAnnotationPostProcessor
java.lang.Object
org.springframework.integration.config.AbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
org.springframework.integration.config.InboundChannelAdapterAnnotationPostProcessor
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,MethodAnnotationPostProcessor<InboundChannelAdapter>
public class InboundChannelAdapterAnnotationPostProcessor
extends AbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
Post-processor for Methods annotated with
@InboundChannelAdapter
.- Since:
- 4.0
- Author:
- Artem Bilan, Gary Russell, Oleg Zhurakousky, Chris Bono
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.integration.config.AbstractMethodAnnotationPostProcessor
AbstractMethodAnnotationPostProcessor.BeanDefinitionPropertiesMapper
-
Field Summary
Fields inherited from class org.springframework.integration.config.AbstractMethodAnnotationPostProcessor
ADVICE_CHAIN_ATTRIBUTE, annotationType, logger, messageHandlerAttributes, SEND_TIMEOUT_ATTRIBUTE
Fields inherited from interface org.springframework.integration.config.annotation.MethodAnnotationPostProcessor
INPUT_CHANNEL_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BeanDefinition
createEndpointBeanDefinition
(ComponentDefinition handlerBeanDefinition, ComponentDefinition beanDefinition, List<Annotation> annotations) protected MessageHandler
createHandler
(Object bean, Method method, List<Annotation> annotations) Subclasses must implement this method to create the MessageHandler.protected String
generateHandlerBeanName
(String originalBeanName, MergedAnnotations mergedAnnotations, String methodName) postProcess
(Object bean, String beanName, Method method, List<Annotation> annotations) protected BeanDefinition
resolveHandlerBeanDefinition
(String beanName, AnnotatedBeanDefinition beanDefinition, ResolvableType handlerBeanType, List<Annotation> annotationChain) Methods inherited from class org.springframework.integration.config.AbstractMethodAnnotationPostProcessor
buildLambdaMessageProcessor, checkMessageHandlerAttributes, configurePollingEndpoint, createEndpoint, doCreateEndpoint, extractAdviceChain, generateHandlerBeanName, generateHandlerBeanName, getBeanFactory, getChannelResolver, getConversionService, getDefinitionRegistry, processBeanDefinition, resolveAttributeToBoolean, setBeanFactory, setOutputChannelIfPresent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.config.annotation.MethodAnnotationPostProcessor
beanAnnotationAware, shouldCreateEndpoint, shouldCreateEndpoint, supportsPojoMethod
-
Constructor Details
-
InboundChannelAdapterAnnotationPostProcessor
public InboundChannelAdapterAnnotationPostProcessor()
-
-
Method Details
-
getInputChannelAttribute
-
resolveHandlerBeanDefinition
protected BeanDefinition resolveHandlerBeanDefinition(String beanName, AnnotatedBeanDefinition beanDefinition, ResolvableType handlerBeanType, List<Annotation> annotationChain) - Overrides:
resolveHandlerBeanDefinition
in classAbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
-
createEndpointBeanDefinition
protected BeanDefinition createEndpointBeanDefinition(ComponentDefinition handlerBeanDefinition, ComponentDefinition beanDefinition, List<Annotation> annotations) - Overrides:
createEndpointBeanDefinition
in classAbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
-
postProcess
public Object postProcess(Object bean, String beanName, Method method, List<Annotation> annotations) - Specified by:
postProcess
in interfaceMethodAnnotationPostProcessor<InboundChannelAdapter>
- Overrides:
postProcess
in classAbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
-
generateHandlerBeanName
protected String generateHandlerBeanName(String originalBeanName, MergedAnnotations mergedAnnotations, @Nullable String methodName) - Overrides:
generateHandlerBeanName
in classAbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
-
createHandler
Description copied from class:AbstractMethodAnnotationPostProcessor
Subclasses must implement this method to create the MessageHandler.- Specified by:
createHandler
in classAbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
- Parameters:
bean
- The bean.method
- The method.annotations
- The messaging annotation (or meta-annotation hierarchy) on the method.- Returns:
- The MessageHandler.
-