Class PublisherAnnotationBeanPostProcessor
java.lang.Object
org.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.ProxyProcessorSupport
org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor
org.springframework.integration.aop.PublisherAnnotationBeanPostProcessor
- All Implemented Interfaces:
java.io.Serializable,org.springframework.aop.framework.AopInfrastructureBean,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.config.BeanPostProcessor,org.springframework.beans.factory.InitializingBean,org.springframework.core.Ordered
public class PublisherAnnotationBeanPostProcessor
extends org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor
implements org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
Post-processes beans that contain the
method-level @
Publisher annotation.
Only one bean instance of this processor can be declared in the application context, manual or automatic by thr framework via annotation or XML processing.
- Since:
- 2.0
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PublisherAnnotationBeanPostProcessor() -
Method Summary
Modifier and Type Method Description voidafterPropertiesSet()voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)voidsetBeanName(java.lang.String name)voidsetDefaultChannelName(java.lang.String defaultChannelName)Set the default channel where Messages should be sent if the annotation itself does not provide a channel.Methods inherited from class org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor
isEligible, prepareProxyFactoryMethods inherited from class org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
customizeProxyFactory, isEligible, postProcessAfterInitialization, postProcessBeforeInitialization, setBeforeExistingAdvisorsMethods inherited from class org.springframework.aop.framework.ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader
-
Constructor Details
-
PublisherAnnotationBeanPostProcessor
public PublisherAnnotationBeanPostProcessor()
-
-
Method Details
-
setDefaultChannelName
public void setDefaultChannelName(java.lang.String defaultChannelName)Set the default channel where Messages should be sent if the annotation itself does not provide a channel.- Parameters:
defaultChannelName- the publisher interceptor defaultChannel- Since:
- 4.0.3
-
setBeanName
public void setBeanName(java.lang.String name)- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Overrides:
setBeanFactoryin classorg.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-