Class BridgeToAnnotationPostProcessor
java.lang.Object
org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor<BridgeTo>
org.springframework.integration.config.annotation.BridgeToAnnotationPostProcessor
- All Implemented Interfaces:
MethodAnnotationPostProcessor<BridgeTo>
public class BridgeToAnnotationPostProcessor extends AbstractMethodAnnotationPostProcessor<BridgeTo>
Post-processor for the
@BridgeTo
annotation.- 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 BridgeToAnnotationPostProcessor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
Method Summary
Modifier and Type Method Description protected AbstractEndpoint
createEndpoint(org.springframework.messaging.MessageHandler handler, java.lang.reflect.Method method, java.util.List<java.lang.annotation.Annotation> annotations)
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.boolean
shouldCreateEndpoint(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, doCreateEndpoint, extractAdviceChain, extractTypeIfPossible, generateHandlerBeanName, getChannelResolver, getInputChannelAttribute, postProcess, resolveAttributeToBoolean, resolveTargetBeanFromMethodWithBeanAnnotation, resolveTargetBeanName, setOutputChannelIfPresent
-
Constructor Details
-
BridgeToAnnotationPostProcessor
public BridgeToAnnotationPostProcessor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
-
Method Details
-
shouldCreateEndpoint
public boolean shouldCreateEndpoint(java.lang.reflect.Method method, java.util.List<java.lang.annotation.Annotation> annotations)Description copied from interface:MethodAnnotationPostProcessor
- Specified by:
shouldCreateEndpoint
in interfaceMethodAnnotationPostProcessor<BridgeTo>
- Overrides:
shouldCreateEndpoint
in classAbstractMethodAnnotationPostProcessor<BridgeTo>
- Parameters:
method
- the method to check if it is eligible to create an Endpointannotations
- the List of annotations to process- Returns:
- the
boolean
flag to determine whether to create anAbstractEndpoint
-
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<BridgeTo>
- Parameters:
bean
- The bean.method
- The method.annotations
- The messaging annotation (or meta-annotation hierarchy) on the method.- Returns:
- The MessageHandler.
-
createEndpoint
protected AbstractEndpoint createEndpoint(org.springframework.messaging.MessageHandler handler, java.lang.reflect.Method method, java.util.List<java.lang.annotation.Annotation> annotations)- Overrides:
createEndpoint
in classAbstractMethodAnnotationPostProcessor<BridgeTo>
-