public class BridgeToAnnotationPostProcessor extends AbstractMethodAnnotationPostProcessor<BridgeTo>
@BridgeTo annotation.annotationType, beanFactory, channelResolver, conversionService, disposables, logger, messageHandlerAttributes, SEND_TIMEOUT_ATTRIBUTE| Constructor and Description |
|---|
BridgeToAnnotationPostProcessor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
| Modifier and Type | Method and 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)
|
beanAnnotationAware, checkMessageHandlerAttributes, configurePollingEndpoint, doCreateEndpoint, extractAdviceChain, extractTypeIfPossible, generateHandlerBeanName, getInputChannelAttribute, postProcess, resolveTargetBeanFromMethodWithBeanAnnotation, resolveTargetBeanName, setOutputChannelIfPresentpublic BridgeToAnnotationPostProcessor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
public boolean shouldCreateEndpoint(java.lang.reflect.Method method,
java.util.List<java.lang.annotation.Annotation> annotations)
MethodAnnotationPostProcessorshouldCreateEndpoint in interface MethodAnnotationPostProcessor<BridgeTo>shouldCreateEndpoint in class AbstractMethodAnnotationPostProcessor<BridgeTo>method - the method to check if it is eligible to create an Endpointannotations - the List of annotations to processboolean flag to determine whether or not to create an
AbstractEndpointprotected org.springframework.messaging.MessageHandler createHandler(java.lang.Object bean,
java.lang.reflect.Method method,
java.util.List<java.lang.annotation.Annotation> annotations)
AbstractMethodAnnotationPostProcessorcreateHandler in class AbstractMethodAnnotationPostProcessor<BridgeTo>bean - The bean.method - The method.annotations - The messaging annotation (or meta-annotation hierarchy) on the method.protected AbstractEndpoint createEndpoint(org.springframework.messaging.MessageHandler handler, java.lang.reflect.Method method, java.util.List<java.lang.annotation.Annotation> annotations)
createEndpoint in class AbstractMethodAnnotationPostProcessor<BridgeTo>