org.springframework.integration.config
Class SubscriberAnnotationPostProcessor

java.lang.Object
  extended by org.springframework.integration.config.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

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
 

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