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