public class PublisherAnnotationAdvisor
extends org.springframework.aop.support.AbstractPointcutAdvisor
implements org.springframework.beans.factory.BeanFactoryAware
MessagePublishingInterceptor to any
methods containing the provided annotations. If no annotations are provided,
the default will be @Publisher.| Constructor and Description |
|---|
PublisherAnnotationAdvisor() |
PublisherAnnotationAdvisor(java.lang.Class<? extends java.lang.annotation.Annotation>... publisherAnnotationTypes) |
| Modifier and Type | Method and Description |
|---|---|
org.aopalliance.aop.Advice |
getAdvice() |
org.springframework.aop.Pointcut |
getPointcut() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setDefaultChannelName(java.lang.String defaultChannelName)
A channel bean name to be used as default for publishing.
|
public PublisherAnnotationAdvisor(java.lang.Class<? extends java.lang.annotation.Annotation>... publisherAnnotationTypes)
public PublisherAnnotationAdvisor()
public void setDefaultChannelName(java.lang.String defaultChannelName)
defaultChannelName - the default channel name.public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarepublic org.aopalliance.aop.Advice getAdvice()
getAdvice in interface org.springframework.aop.Advisorpublic org.springframework.aop.Pointcut getPointcut()
getPointcut in interface org.springframework.aop.PointcutAdvisor