public abstract class AbstractMethodAnnotationPostProcessor<T extends Annotation> extends Object implements MethodAnnotationPostProcessor<T>
Modifier and Type | Field and Description |
---|---|
protected org.springframework.beans.factory.BeanFactory |
beanFactory |
protected ChannelResolver |
channelResolver |
Constructor and Description |
---|
AbstractMethodAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
protected abstract MessageHandler |
createHandler(Object bean,
Method method,
T annotation)
Subclasses must implement this method to create the MessageHandler.
|
Object |
postProcess(Object bean,
String beanName,
Method method,
T annotation) |
protected void |
setAdviceChainIfPresent(String beanName,
T annotation,
MessageHandler handler) |
protected boolean |
shouldCreateEndpoint(T annotation) |
protected final org.springframework.beans.factory.BeanFactory beanFactory
protected final ChannelResolver channelResolver
public AbstractMethodAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory beanFactory)
public Object postProcess(Object bean, String beanName, Method method, T annotation)
postProcess
in interface MethodAnnotationPostProcessor<T extends Annotation>
protected final void setAdviceChainIfPresent(String beanName, T annotation, MessageHandler handler)
protected boolean shouldCreateEndpoint(T annotation)
protected abstract MessageHandler createHandler(Object bean, Method method, T annotation)
Copyright © 2016. All rights reserved.