Class AbstractMethodAnnotationPostProcessor<T extends Annotation>
java.lang.Object
org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor<T>
- 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 Summary
Fields Modifier and Type Field Description protected Class<T>
annotationType
protected ConfigurableListableBeanFactory
beanFactory
protected DestinationResolver<MessageChannel>
channelResolver
protected ConversionService
conversionService
protected org.springframework.integration.config.annotation.Disposables
disposables
protected Log
logger
protected List<String>
messageHandlerAttributes
protected static String
SEND_TIMEOUT_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description AbstractMethodAnnotationPostProcessor(ConfigurableListableBeanFactory beanFactory)
-
Method Summary
-
Field Details
-
SEND_TIMEOUT_ATTRIBUTE
- See Also:
- Constant Field Values
-
logger
-
messageHandlerAttributes
-
beanFactory
-
conversionService
-
channelResolver
-
annotationType
-
disposables
protected final org.springframework.integration.config.annotation.Disposables disposables
-
-
Constructor Details
-
Method Details
-
postProcess
public Object postProcess(Object bean, String beanName, Method method, List<Annotation> annotations)- Specified by:
postProcess
in interfaceMethodAnnotationPostProcessor<T extends Annotation>
-
shouldCreateEndpoint
Description copied from interface:MethodAnnotationPostProcessor
- Specified by:
shouldCreateEndpoint
in interfaceMethodAnnotationPostProcessor<T extends Annotation>
- 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 or not to create anAbstractEndpoint
-
getInputChannelAttribute
-
beanAnnotationAware
protected boolean beanAnnotationAware() -
extractAdviceChain
-
createEndpoint
protected AbstractEndpoint createEndpoint(MessageHandler handler, Method method, List<Annotation> annotations) -
doCreateEndpoint
protected AbstractEndpoint doCreateEndpoint(MessageHandler handler, MessageChannel inputChannel, List<Annotation> annotations) -
configurePollingEndpoint
-
generateHandlerBeanName
-
setOutputChannelIfPresent
protected void setOutputChannelIfPresent(List<Annotation> annotations, AbstractReplyProducingMessageHandler handler) -
resolveTargetBeanFromMethodWithBeanAnnotation
-
resolveTargetBeanName
-
extractTypeIfPossible
-
checkMessageHandlerAttributes
-
resolveAttributeToBoolean
-
buildLambdaMessageProcessorForBeanMethod
@Nullable protected MessageProcessor<?> buildLambdaMessageProcessorForBeanMethod(Method method, Object target) -
createHandler
protected 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.
-