org.springframework.integration.config.annotation
Class AbstractMethodAnnotationPostProcessor<T extends java.lang.annotation.Annotation>
java.lang.Object
org.springframework.integration.config.annotation.AbstractMethodAnnotationPostProcessor<T>
- All Implemented Interfaces:
- MethodAnnotationPostProcessor<T>
- Direct Known Subclasses:
- AggregatorAnnotationPostProcessor, FilterAnnotationPostProcessor, RouterAnnotationPostProcessor, ServiceActivatorAnnotationPostProcessor, SplitterAnnotationPostProcessor, TransformerAnnotationPostProcessor
public abstract class AbstractMethodAnnotationPostProcessor<T extends java.lang.annotation.Annotation>
- extends java.lang.Object
- implements MethodAnnotationPostProcessor<T>
Base class for Method-level annotation post-processors.
- Author:
- Mark Fisher
Method Summary |
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 boolean |
shouldCreateEndpoint(T annotation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beanFactory
protected final org.springframework.beans.factory.BeanFactory beanFactory
channelResolver
protected final ChannelResolver channelResolver
AbstractMethodAnnotationPostProcessor
public AbstractMethodAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory beanFactory)
postProcess
public java.lang.Object postProcess(java.lang.Object bean,
java.lang.String beanName,
java.lang.reflect.Method method,
T annotation)
- Specified by:
postProcess
in interface MethodAnnotationPostProcessor<T extends java.lang.annotation.Annotation>
shouldCreateEndpoint
protected boolean shouldCreateEndpoint(T annotation)
createHandler
protected abstract MessageHandler createHandler(java.lang.Object bean,
java.lang.reflect.Method method,
T annotation)
- Subclasses must implement this method to create the MessageHandler.