public abstract class AbstractMethodAnnotationPostProcessor<T extends java.lang.annotation.Annotation> extends java.lang.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(java.lang.Object bean,
java.lang.reflect.Method method,
T annotation)
Subclasses must implement this method to create the MessageHandler.
|
java.lang.Object |
postProcess(java.lang.Object bean,
java.lang.String beanName,
java.lang.reflect.Method method,
T annotation) |
protected void |
setAdviceChainIfPresent(java.lang.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 java.lang.Object postProcess(java.lang.Object bean, java.lang.String beanName, java.lang.reflect.Method method, T annotation)
postProcess
in interface MethodAnnotationPostProcessor<T extends java.lang.annotation.Annotation>
protected final void setAdviceChainIfPresent(java.lang.String beanName, T annotation, MessageHandler handler)
protected boolean shouldCreateEndpoint(T annotation)
protected abstract MessageHandler createHandler(java.lang.Object bean, java.lang.reflect.Method method, T annotation)