public abstract class AbstractMethodAnnotationPostProcessor<T extends Annotation> extends Object implements MethodAnnotationPostProcessor<T>
Modifier and Type | Field and Description |
---|---|
protected BeanFactory |
beanFactory |
protected DestinationResolver<MessageChannel> |
channelResolver |
Constructor and Description |
---|
AbstractMethodAnnotationPostProcessor(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 BeanFactory beanFactory
protected final DestinationResolver<MessageChannel> channelResolver
public AbstractMethodAnnotationPostProcessor(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)
bean
- The bean.method
- The method.annotation
- The annotation.