Class BridgeToAnnotationPostProcessor
java.lang.Object
org.springframework.integration.config.AbstractMethodAnnotationPostProcessor<BridgeTo>
org.springframework.integration.config.BridgeToAnnotationPostProcessor
- All Implemented Interfaces:
Aware,BeanFactoryAware,MethodAnnotationPostProcessor<BridgeTo>
public class BridgeToAnnotationPostProcessor
extends AbstractMethodAnnotationPostProcessor<BridgeTo>
Post-processor for the
@BridgeTo annotation.- Since:
- 4.0
- Author:
- Artem Bilan
-
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_ATTRIBUTEFields inherited from interface org.springframework.integration.config.annotation.MethodAnnotationPostProcessor
INPUT_CHANNEL_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractEndpointcreateEndpoint(MessageHandler handler, Method method, List<Annotation> annotations) protected BeanDefinitioncreateEndpointBeanDefinition(ComponentDefinition handlerBeanDefinition, ComponentDefinition beanDefinition, List<Annotation> annotations) protected 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> annotationChain) booleanshouldCreateEndpoint(MergedAnnotations mergedAnnotations, List<Annotation> annotations) booleanMethods inherited from class org.springframework.integration.config.AbstractMethodAnnotationPostProcessor
buildLambdaMessageProcessor, checkMessageHandlerAttributes, configurePollingEndpoint, doCreateEndpoint, extractAdviceChain, generateHandlerBeanName, generateHandlerBeanName, generateHandlerBeanName, getBeanFactory, getChannelResolver, getConversionService, getDefinitionRegistry, postProcess, 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, getInputChannelAttribute, shouldCreateEndpoint
-
Constructor Details
-
BridgeToAnnotationPostProcessor
public BridgeToAnnotationPostProcessor()
-
-
Method Details
-
supportsPojoMethod
public boolean supportsPojoMethod() -
shouldCreateEndpoint
public boolean shouldCreateEndpoint(MergedAnnotations mergedAnnotations, List<Annotation> annotations) -
resolveHandlerBeanDefinition
protected BeanDefinition resolveHandlerBeanDefinition(String beanName, AnnotatedBeanDefinition beanDefinition, ResolvableType handlerBeanType, List<Annotation> annotationChain) - Overrides:
resolveHandlerBeanDefinitionin classAbstractMethodAnnotationPostProcessor<BridgeTo>
-
createEndpointBeanDefinition
protected BeanDefinition createEndpointBeanDefinition(ComponentDefinition handlerBeanDefinition, ComponentDefinition beanDefinition, List<Annotation> annotations) - Overrides:
createEndpointBeanDefinitionin classAbstractMethodAnnotationPostProcessor<BridgeTo>
-
createEndpoint
protected AbstractEndpoint createEndpoint(MessageHandler handler, Method method, List<Annotation> annotations) - Overrides:
createEndpointin classAbstractMethodAnnotationPostProcessor<BridgeTo>
-
createHandler
Description copied from class:AbstractMethodAnnotationPostProcessorSubclasses must implement this method to create the MessageHandler.- Specified by:
createHandlerin classAbstractMethodAnnotationPostProcessor<BridgeTo>- Parameters:
bean- The bean.method- The method.annotations- The messaging annotation (or meta-annotation hierarchy) on the method.- Returns:
- The MessageHandler.
-