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
,InitializingBean
,Ordered
public class PublisherAnnotationBeanPostProcessor extends AbstractBeanFactoryAwareAdvisingPostProcessor implements BeanNameAware, 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
- Author:
- Oleg Zhurakousky, Mark Fisher, Gary Russell, Artem Bilan, Rick Hogge
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
advisor, beforeExistingAdvisors
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors Constructor Description PublisherAnnotationBeanPostProcessor()
-
Method Summary
Modifier and Type Method Description void
afterPropertiesSet()
void
setBeanFactory(BeanFactory beanFactory)
void
setBeanName(String name)
void
setDefaultChannelName(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, prepareProxyFactory
Methods inherited from class org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
customizeProxyFactory, isEligible, postProcessAfterInitialization, postProcessBeforeInitialization, setBeforeExistingAdvisors
Methods inherited from class org.springframework.aop.framework.ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader
Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString
-
Constructor Details
-
PublisherAnnotationBeanPostProcessor
public PublisherAnnotationBeanPostProcessor()
-
-
Method Details
-
setDefaultChannelName
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
- Specified by:
setBeanName
in interfaceBeanNameAware
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Overrides:
setBeanFactory
in classAbstractBeanFactoryAwareAdvisingPostProcessor
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-