org.springframework.integration.config.annotation
Class HandlerAnnotationPostProcessor

java.lang.Object
  extended by org.springframework.integration.config.annotation.AbstractAnnotationMethodPostProcessor<MessageHandler>
      extended by org.springframework.integration.config.annotation.HandlerAnnotationPostProcessor
All Implemented Interfaces:
AnnotationMethodPostProcessor

public class HandlerAnnotationPostProcessor
extends AbstractAnnotationMethodPostProcessor<MessageHandler>

Post-processor for the @Handler annotation.

Author:
Mark Fisher

Field Summary
private  MessageHandlerCreator defaultHandlerCreator
           
private  java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MessageHandlerCreator> handlerCreators
           
 
Fields inherited from class org.springframework.integration.config.annotation.AbstractAnnotationMethodPostProcessor
logger
 
Constructor Summary
HandlerAnnotationPostProcessor(MessageBus messageBus, java.lang.ClassLoader beanClassLoader)
           
 
Method Summary
 MessageEndpoint createEndpoint(java.lang.Object bean, java.lang.String beanName, java.lang.Class<?> originalBeanClass, MessageEndpoint endpointAnnotation)
           
protected  MessageHandler processMethod(java.lang.Object bean, java.lang.reflect.Method method, java.lang.annotation.Annotation annotation)
           
protected  MessageHandler processResults(java.util.List<MessageHandler> results)
           
 void setCustomHandlerCreators(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MessageHandlerCreator> customHandlerCreators)
           
 
Methods inherited from class org.springframework.integration.config.annotation.AbstractAnnotationMethodPostProcessor
extractSchedule, getMessageBus, postProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handlerCreators

private final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MessageHandlerCreator> handlerCreators

defaultHandlerCreator

private final MessageHandlerCreator defaultHandlerCreator
Constructor Detail

HandlerAnnotationPostProcessor

public HandlerAnnotationPostProcessor(MessageBus messageBus,
                                      java.lang.ClassLoader beanClassLoader)
Method Detail

setCustomHandlerCreators

public void setCustomHandlerCreators(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,MessageHandlerCreator> customHandlerCreators)

processMethod

protected MessageHandler processMethod(java.lang.Object bean,
                                       java.lang.reflect.Method method,
                                       java.lang.annotation.Annotation annotation)
Specified by:
processMethod in class AbstractAnnotationMethodPostProcessor<MessageHandler>

processResults

protected MessageHandler processResults(java.util.List<MessageHandler> results)
Specified by:
processResults in class AbstractAnnotationMethodPostProcessor<MessageHandler>

createEndpoint

public MessageEndpoint createEndpoint(java.lang.Object bean,
                                      java.lang.String beanName,
                                      java.lang.Class<?> originalBeanClass,
                                      MessageEndpoint endpointAnnotation)