Class PublisherAnnotationAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.integration.aop.PublisherAnnotationAdvisor
- All Implemented Interfaces:
- Serializable,- Advisor,- PointcutAdvisor,- Aware,- BeanFactoryAware,- Ordered
An advisor that will apply the 
MessagePublishingInterceptor to any
 methods containing the provided annotations. If no annotations are provided,
 the default will be @Publisher.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
- See Also:
- 
Field SummaryFields inherited from interface org.springframework.aop.AdvisorEMPTY_ADVICEFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionPublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetBeanFactory(BeanFactory beanFactory) voidsetDefaultChannelName(String defaultChannelName) A channel bean name to be used as default for publishing.Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisorequals, getOrder, hashCode, setOrderMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.AdvisorisPerInstance
- 
Constructor Details- 
PublisherAnnotationAdvisorpublic PublisherAnnotationAdvisor()
- 
PublisherAnnotationAdvisor@SafeVarargs public PublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes) 
 
- 
- 
Method Details- 
setDefaultChannelNameA channel bean name to be used as default for publishing.- Parameters:
- defaultChannelName- the default channel name.
- Since:
- 4.0.3
 
- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
 
- 
getAdvice
- 
getPointcut- Specified by:
- getPointcutin interface- PointcutAdvisor
 
 
-