Class InboundChannelAdapterAnnotationPostProcessor
java.lang.Object
org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
org.springframework.integration.config.annotation.InboundChannelAdapterAnnotationPostProcessor
- All Implemented Interfaces:
MethodAnnotationPostProcessor<InboundChannelAdapter>
public class InboundChannelAdapterAnnotationPostProcessor extends AbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
Post-processor for Methods annotated with
@InboundChannelAdapter
.- Since:
- 4.0
-
Field Summary
Fields inherited from class org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor
annotationType, beanFactory, conversionService, definitionRegistry, logger, messageHandlerAttributes, SEND_TIMEOUT_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description InboundChannelAdapterAnnotationPostProcessor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
Method Summary
Modifier and Type Method Description protected org.springframework.messaging.MessageHandler
createHandler(java.lang.Object bean, java.lang.reflect.Method method, java.util.List<java.lang.annotation.Annotation> annotations)
Subclasses must implement this method to create the MessageHandler.protected java.lang.String
generateHandlerBeanName(java.lang.String originalBeanName, java.lang.reflect.Method method)
protected java.lang.String
getInputChannelAttribute()
java.lang.Object
postProcess(java.lang.Object bean, java.lang.String beanName, java.lang.reflect.Method method, java.util.List<java.lang.annotation.Annotation> annotations)
Methods inherited from class org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor
beanAnnotationAware, buildLambdaMessageProcessorForBeanMethod, checkMessageHandlerAttributes, configurePollingEndpoint, createEndpoint, doCreateEndpoint, extractAdviceChain, extractTypeIfPossible, getChannelResolver, resolveAttributeToBoolean, resolveTargetBeanFromMethodWithBeanAnnotation, resolveTargetBeanName, setOutputChannelIfPresent, shouldCreateEndpoint
-
Constructor Details
-
InboundChannelAdapterAnnotationPostProcessor
public InboundChannelAdapterAnnotationPostProcessor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
-
Method Details
-
getInputChannelAttribute
protected java.lang.String getInputChannelAttribute()- Overrides:
getInputChannelAttribute
in classAbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
-
postProcess
public java.lang.Object postProcess(java.lang.Object bean, java.lang.String beanName, java.lang.reflect.Method method, java.util.List<java.lang.annotation.Annotation> annotations)- Specified by:
postProcess
in interfaceMethodAnnotationPostProcessor<InboundChannelAdapter>
- Overrides:
postProcess
in classAbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
-
generateHandlerBeanName
protected java.lang.String generateHandlerBeanName(java.lang.String originalBeanName, java.lang.reflect.Method method)- Overrides:
generateHandlerBeanName
in classAbstractMethodAnnotationPostProcessor<InboundChannelAdapter>
-
createHandler
protected org.springframework.messaging.MessageHandler createHandler(java.lang.Object bean, java.lang.reflect.Method method, java.util.List<java.lang.annotation.Annotation> annotations)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.
-