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 org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> |
channelResolver |
| Constructor and Description |
|---|
AbstractMethodAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory beanFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.springframework.messaging.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,
org.springframework.messaging.MessageHandler handler) |
protected boolean |
shouldCreateEndpoint(T annotation) |
protected final org.springframework.beans.factory.BeanFactory beanFactory
protected final org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> 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,
org.springframework.messaging.MessageHandler handler)
protected boolean shouldCreateEndpoint(T annotation)
protected abstract org.springframework.messaging.MessageHandler createHandler(java.lang.Object bean,
java.lang.reflect.Method method,
T annotation)