org.springframework.integration.config
Class PublisherAnnotationPostProcessor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
publisherAnnotationType
private java.lang.Class<? extends java.lang.annotation.Annotation> publisherAnnotationType
channelNameAttribute
private java.lang.String channelNameAttribute
channelRegistry
private ChannelRegistry channelRegistry
advisor
private org.springframework.aop.Advisor advisor
beanClassLoader
private java.lang.ClassLoader beanClassLoader
PublisherAnnotationPostProcessor
public PublisherAnnotationPostProcessor()
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)
createAdvisor
private void createAdvisor()
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