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:
- Serializable,- AopInfrastructureBean,- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- BeanNameAware,- BeanPostProcessor,- InstantiationAwareBeanPostProcessor,- SmartInstantiationAwareBeanPostProcessor,- SmartInitializingSingleton,- Ordered
public class PublisherAnnotationBeanPostProcessor
extends AbstractBeanFactoryAwareAdvisingPostProcessor
implements BeanNameAware, SmartInitializingSingleton
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
- Author:
- Oleg Zhurakousky, Mark Fisher, Gary Russell, Artem Bilan, Rick Hogge
- See Also:
- 
Field SummaryFields inherited from class org.springframework.aop.framework.AbstractAdvisingBeanPostProcessoradvisor, beforeExistingAdvisorsFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidsetBeanFactory(BeanFactory beanFactory) voidsetBeanName(String name) voidsetDefaultChannelName(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.AbstractBeanFactoryAwareAdvisingPostProcessorisEligible, prepareProxyFactoryMethods inherited from class org.springframework.aop.framework.AbstractAdvisingBeanPostProcessorcustomizeProxyFactory, determineBeanType, isEligible, postProcessAfterInitialization, setBeforeExistingAdvisorsMethods inherited from class org.springframework.aop.framework.ProxyProcessorSupportevaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoaderMethods inherited from class org.springframework.aop.framework.ProxyConfigcopyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessorpostProcessBeforeInitializationMethods inherited from interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorpostProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessPropertiesMethods inherited from interface org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessordetermineCandidateConstructors, getEarlyBeanReference, predictBeanType
- 
Constructor Details- 
PublisherAnnotationBeanPostProcessorpublic PublisherAnnotationBeanPostProcessor()
 
- 
- 
Method Details- 
setDefaultChannelNameSet 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- Specified by:
- setBeanNamein interface- BeanNameAware
 
- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Overrides:
- setBeanFactoryin class- AbstractBeanFactoryAwareAdvisingPostProcessor
 
- 
afterSingletonsInstantiatedpublic void afterSingletonsInstantiated()- Specified by:
- afterSingletonsInstantiatedin interface- SmartInitializingSingleton
 
 
-