org.springframework.integration.config
Class PublisherAnnotationPostProcessor

java.lang.Object
  extended by org.springframework.integration.config.PublisherAnnotationPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.config.BeanPostProcessor

public class PublisherAnnotationPostProcessor
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.BeanClassLoaderAware

A BeanPostProcessor that adds a message publishing interceptor when it discovers annotated methods.

Author:
Mark Fisher

Constructor Summary
PublisherAnnotationPostProcessor()
           
 
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 setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
           
 void setChannelNameAttribute(java.lang.String channelNameAttribute)
           
 void setChannelRegistry(ChannelRegistry channelRegistry)
           
 void setPublisherAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> publisherAnnotationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublisherAnnotationPostProcessor

public PublisherAnnotationPostProcessor()
Method Detail

setBeanClassLoader

public void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
Specified by:
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware

setPublisherAnnotationType

public void setPublisherAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> publisherAnnotationType)

setChannelNameAttribute

public void setChannelNameAttribute(java.lang.String channelNameAttribute)

setChannelRegistry

public void setChannelRegistry(ChannelRegistry channelRegistry)

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