Spring Integration

org.springframework.integration.config.annotation
Class AbstractMethodAnnotationPostProcessor<T extends java.lang.annotation.Annotation>

java.lang.Object
  extended by 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

Field Summary
protected  org.springframework.beans.factory.BeanFactory beanFactory
           
protected  ChannelResolver channelResolver
           
 
Constructor Summary
AbstractMethodAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory beanFactory)
           
 
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
 

Field Detail

beanFactory

protected final org.springframework.beans.factory.BeanFactory beanFactory

channelResolver

protected final ChannelResolver channelResolver
Constructor Detail

AbstractMethodAnnotationPostProcessor

public AbstractMethodAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Method Detail

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.


Spring Integration