public class PublisherAnnotationAdvisor extends AbstractPointcutAdvisor implements BeanFactoryAware
MessagePublishingInterceptor to any
methods containing the provided annotations. If no annotations are provided,
the default will be @Publisher.EMPTY_ADVICEHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
PublisherAnnotationAdvisor() |
PublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes) |
| Modifier and Type | Method and Description |
|---|---|
Advice |
getAdvice() |
Pointcut |
getPointcut() |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setDefaultChannelName(String defaultChannelName)
A channel bean name to be used as default for publishing.
|
equals, getOrder, hashCode, isPerInstance, setOrderpublic PublisherAnnotationAdvisor()
@SafeVarargs public PublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes)
public void setDefaultChannelName(String defaultChannelName)
defaultChannelName - the default channel name.public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwarepublic Pointcut getPointcut()
getPointcut in interface PointcutAdvisor