Class AbstractMethodAnnotationPostProcessor<T extends Annotation>
java.lang.Object
org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor<T>
- Type Parameters:
- T- the target annotation type.
- All Implemented Interfaces:
- MethodAnnotationPostProcessor<T>
- Direct Known Subclasses:
- AggregatorAnnotationPostProcessor,- BridgeFromAnnotationPostProcessor,- BridgeToAnnotationPostProcessor,- FilterAnnotationPostProcessor,- InboundChannelAdapterAnnotationPostProcessor,- RouterAnnotationPostProcessor,- ServiceActivatorAnnotationPostProcessor,- SplitterAnnotationPostProcessor,- TransformerAnnotationPostProcessor
public abstract class AbstractMethodAnnotationPostProcessor<T extends Annotation> extends Object implements MethodAnnotationPostProcessor<T>
Base class for Method-level annotation post-processors.
- Author:
- Mark Fisher, Artem Bilan, Gary Russell
- 
Field SummaryFields Modifier and Type Field Description protected Class<T>annotationTypeprotected ConfigurableListableBeanFactorybeanFactoryprotected ConversionServiceconversionServiceprotected BeanDefinitionRegistrydefinitionRegistryprotected Logloggerprotected List<String>messageHandlerAttributesprotected static StringSEND_TIMEOUT_ATTRIBUTE
- 
Constructor SummaryConstructors Constructor Description AbstractMethodAnnotationPostProcessor(ConfigurableListableBeanFactory beanFactory)
- 
Method Summary
- 
Field Details
- 
Constructor Details
- 
Method Details- 
getChannelResolver
- 
postProcesspublic Object postProcess(Object bean, String beanName, Method method, List<Annotation> annotations)- Specified by:
- postProcessin interface- MethodAnnotationPostProcessor<T extends Annotation>
 
- 
shouldCreateEndpointDescription copied from interface:MethodAnnotationPostProcessor- Specified by:
- shouldCreateEndpointin interface- MethodAnnotationPostProcessor<T extends Annotation>
- Parameters:
- method- the method to check if it is eligible to create an Endpoint
- annotations- the List of annotations to process
- Returns:
- the booleanflag to determine whether to create anAbstractEndpoint
 
- 
getInputChannelAttribute
- 
beanAnnotationAwareprotected boolean beanAnnotationAware()
- 
extractAdviceChain
- 
createEndpointprotected AbstractEndpoint createEndpoint(MessageHandler handler, Method method, List<Annotation> annotations)
- 
doCreateEndpointprotected AbstractEndpoint doCreateEndpoint(MessageHandler handler, MessageChannel inputChannel, List<Annotation> annotations)
- 
configurePollingEndpoint
- 
generateHandlerBeanName
- 
setOutputChannelIfPresentprotected void setOutputChannelIfPresent(List<Annotation> annotations, AbstractReplyProducingMessageHandler handler)
- 
resolveTargetBeanFromMethodWithBeanAnnotation
- 
resolveTargetBeanName
- 
extractTypeIfPossible
- 
checkMessageHandlerAttributes
- 
resolveAttributeToBoolean
- 
buildLambdaMessageProcessorForBeanMethod@Nullable protected MessageProcessor<?> buildLambdaMessageProcessorForBeanMethod(Method method, Object target)
- 
createHandlerprotected abstract MessageHandler createHandler(Object bean, Method method, List<Annotation> annotations)Subclasses must implement this method to create the MessageHandler.- Parameters:
- bean- The bean.
- method- The method.
- annotations- The messaging annotation (or meta-annotation hierarchy) on the method.
- Returns:
- The MessageHandler.
 
 
-