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