org.springframework.integration.config.annotation
Class SubscriberAnnotationPostProcessor

java.lang.Object
  extended by org.springframework.integration.config.annotation.SubscriberAnnotationPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class SubscriberAnnotationPostProcessor
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanPostProcessor

A BeanPostProcessor that creates a method-invoking handler adapter when it discovers methods annotated with @Subscriber.

Author:
Mark Fisher

Field Summary
private  java.lang.String channelNameAttribute
           
private  org.apache.commons.logging.Log logger
           
private  MessageBus messageBus
           
private  java.lang.Class<? extends java.lang.annotation.Annotation> subscriberAnnotationType
           
 
Constructor Summary
SubscriberAnnotationPostProcessor()
           
 
Method Summary
 java.lang.Object postProcessAfterInitialization(java.lang.Object bean, java.lang.String beanName)
           
 java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName)
           
 void setChannelNameAttribute(java.lang.String channelNameAttribute)
           
 void setMessageBus(MessageBus messageBus)
           
 void setSubscriberAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> subscriberAnnotationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private org.apache.commons.logging.Log logger

subscriberAnnotationType

private java.lang.Class<? extends java.lang.annotation.Annotation> subscriberAnnotationType

channelNameAttribute

private java.lang.String channelNameAttribute

messageBus

private MessageBus messageBus
Constructor Detail

SubscriberAnnotationPostProcessor

public SubscriberAnnotationPostProcessor()
Method Detail

setSubscriberAnnotationType

public void setSubscriberAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> subscriberAnnotationType)

setChannelNameAttribute

public void setChannelNameAttribute(java.lang.String channelNameAttribute)

setMessageBus

public void setMessageBus(MessageBus messageBus)

postProcessBeforeInitialization

public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
                                                        java.lang.String beanName)
                                                 throws org.springframework.beans.BeansException
Specified by:
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException

postProcessAfterInitialization

public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
                                                       java.lang.String beanName)
                                                throws org.springframework.beans.BeansException
Specified by:
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
Throws:
org.springframework.beans.BeansException