public abstract class AbstractMethodAnnotationPostProcessor<T extends Annotation> extends Object implements MethodAnnotationPostProcessor<T>
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
annotationType |
protected ConfigurableListableBeanFactory |
beanFactory |
protected DestinationResolver<MessageChannel> |
channelResolver |
protected ConversionService |
conversionService |
protected Environment |
environment |
| Constructor and Description |
|---|
AbstractMethodAnnotationPostProcessor(ListableBeanFactory beanFactory,
Environment environment) |
protected final ConfigurableListableBeanFactory beanFactory
protected final ConversionService conversionService
protected final Environment environment
protected final DestinationResolver<MessageChannel> channelResolver
protected final Class<T extends Annotation> annotationType
public AbstractMethodAnnotationPostProcessor(ListableBeanFactory beanFactory, Environment environment)
public Object postProcess(Object bean, String beanName, Method method, List<Annotation> annotations)
postProcess in interface MethodAnnotationPostProcessor<T extends Annotation>public boolean shouldCreateEndpoint(Method method, List<Annotation> annotations)
MethodAnnotationPostProcessorshouldCreateEndpoint in interface MethodAnnotationPostProcessor<T extends Annotation>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 String getInputChannelAttribute()
protected boolean beanAnnotationAware()
protected final void setAdviceChainIfPresent(String beanName, List<Annotation> annotations, MessageHandler handler)
protected AbstractEndpoint createEndpoint(MessageHandler handler, Method method, List<Annotation> annotations)
protected AbstractEndpoint doCreateEndpoint(MessageHandler handler, MessageChannel inputChannel, List<Annotation> annotations)
protected void configurePollingEndpoint(AbstractPollingEndpoint pollingEndpoint, List<Annotation> annotations)
protected String generateHandlerBeanName(String originalBeanName, Method method)
protected void setOutputChannelIfPresent(List<Annotation> annotations, AbstractReplyProducingMessageHandler handler)
protected Object resolveTargetBeanFromMethodWithBeanAnnotation(Method method)
protected abstract MessageHandler createHandler(Object bean, Method method, List<Annotation> annotations)
bean - The bean.method - The method.annotations - The messaging annotation (or meta-annotation hierarchy) on the method.