Class BridgeFromAnnotationPostProcessor
java.lang.Object
org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor<BridgeFrom>
org.springframework.integration.config.annotation.BridgeFromAnnotationPostProcessor
- All Implemented Interfaces:
MethodAnnotationPostProcessor<BridgeFrom>
public class BridgeFromAnnotationPostProcessor extends AbstractMethodAnnotationPostProcessor<BridgeFrom>
Post-processor for the
@BridgeFrom
annotation.- Since:
- 4.0
-
Field Summary
Fields inherited from class org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor
annotationType, beanFactory, channelResolver, conversionService, definitionRegistry, logger, messageHandlerAttributes, SEND_TIMEOUT_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description BridgeFromAnnotationPostProcessor(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
getInputChannelAttribute()
protected java.lang.Object
resolveTargetBeanFromMethodWithBeanAnnotation(java.lang.reflect.Method method)
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, createEndpoint, doCreateEndpoint, extractAdviceChain, extractTypeIfPossible, generateHandlerBeanName, postProcess, resolveAttributeToBoolean, resolveTargetBeanName, setOutputChannelIfPresent
-
Constructor Details
-
BridgeFromAnnotationPostProcessor
public BridgeFromAnnotationPostProcessor(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<BridgeFrom>
- Overrides:
shouldCreateEndpoint
in classAbstractMethodAnnotationPostProcessor<BridgeFrom>
- 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
-
getInputChannelAttribute
protected java.lang.String getInputChannelAttribute()- Overrides:
getInputChannelAttribute
in classAbstractMethodAnnotationPostProcessor<BridgeFrom>
-
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<BridgeFrom>
- Parameters:
bean
- The bean.method
- The method.annotations
- The messaging annotation (or meta-annotation hierarchy) on the method.- Returns:
- The MessageHandler.
-
resolveTargetBeanFromMethodWithBeanAnnotation
protected java.lang.Object resolveTargetBeanFromMethodWithBeanAnnotation(java.lang.reflect.Method method)- Overrides:
resolveTargetBeanFromMethodWithBeanAnnotation
in classAbstractMethodAnnotationPostProcessor<BridgeFrom>
-