Class PublisherAnnotationAdvisor

java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.integration.aop.PublisherAnnotationAdvisor
All Implemented Interfaces:
Serializable, Advisor, PointcutAdvisor, Aware, BeanFactoryAware, Ordered

public class PublisherAnnotationAdvisor extends AbstractPointcutAdvisor implements BeanFactoryAware
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:
  • Constructor Details

    • PublisherAnnotationAdvisor

      public PublisherAnnotationAdvisor()
    • PublisherAnnotationAdvisor

      @SafeVarargs public PublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes)
  • Method Details

    • setDefaultChannelName

      public void setDefaultChannelName(String defaultChannelName)
      A channel bean name to be used as default for publishing.
      Parameters:
      defaultChannelName - the default channel name.
      Since:
      4.0.3
    • setBeanFactory

      public void setBeanFactory(BeanFactory beanFactory)
      Specified by:
      setBeanFactory in interface BeanFactoryAware
    • getAdvice

      public Advice getAdvice()
      Specified by:
      getAdvice in interface Advisor
    • getPointcut

      public Pointcut getPointcut()
      Specified by:
      getPointcut in interface PointcutAdvisor