Spring Integration

org.springframework.integration.config.annotation
Class AbstractMethodAnnotationPostProcessor<T extends 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 Annotation>
extends Object
implements MethodAnnotationPostProcessor<T>

Base class for Method-level annotation post-processors.

Author:
Mark Fisher

Field Summary
protected  BeanFactory beanFactory
           
protected  ChannelResolver channelResolver
           
 
Constructor Summary
AbstractMethodAnnotationPostProcessor(ListableBeanFactory beanFactory)
           
 
Method Summary
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  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 BeanFactory beanFactory

channelResolver

protected final ChannelResolver channelResolver
Constructor Detail

AbstractMethodAnnotationPostProcessor

public AbstractMethodAnnotationPostProcessor(ListableBeanFactory beanFactory)
Method Detail

postProcess

public Object postProcess(Object bean,
                          String beanName,
                          Method method,
                          T annotation)
Specified by:
postProcess in interface MethodAnnotationPostProcessor<T extends Annotation>

shouldCreateEndpoint

protected boolean shouldCreateEndpoint(T annotation)

createHandler

protected abstract MessageHandler createHandler(Object bean,
                                                Method method,
                                                T annotation)
Subclasses must implement this method to create the MessageHandler.


Spring Integration

Copyright © 2010. All Rights Reserved.