org.springframework.integration.aop
Class PublisherAnnotationAdvisor

java.lang.Object
  extended by org.springframework.aop.support.AbstractPointcutAdvisor
      extended by org.springframework.integration.aop.PublisherAnnotationAdvisor
All Implemented Interfaces:
java.io.Serializable, org.springframework.aop.Advisor, org.springframework.aop.PointcutAdvisor, org.springframework.core.Ordered

public class PublisherAnnotationAdvisor
extends org.springframework.aop.support.AbstractPointcutAdvisor

Advisor whose pointcut matches a method annotation and whose advice will publish a message to the channel provided by that annotation.

Author:
Mark Fisher
See Also:
Publisher, AnnotationAwareMessagePublishingInterceptor, Serialized Form

Field Summary
private  AnnotationAwareMessagePublishingInterceptor advice
           
private  org.springframework.aop.support.annotation.AnnotationMatchingPointcut pointcut
           
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
PublisherAnnotationAdvisor(ChannelRegistry channelRegistry)
           
PublisherAnnotationAdvisor(java.lang.Class<? extends java.lang.annotation.Annotation> publisherAnnotationType, java.lang.String channelNameAttribute, ChannelRegistry channelRegistry)
           
 
Method Summary
 org.aopalliance.aop.Advice getAdvice()
           
 org.springframework.aop.Pointcut getPointcut()
           
 
Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance, setOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

advice

private AnnotationAwareMessagePublishingInterceptor advice

pointcut

private org.springframework.aop.support.annotation.AnnotationMatchingPointcut pointcut
Constructor Detail

PublisherAnnotationAdvisor

public PublisherAnnotationAdvisor(ChannelRegistry channelRegistry)

PublisherAnnotationAdvisor

public PublisherAnnotationAdvisor(java.lang.Class<? extends java.lang.annotation.Annotation> publisherAnnotationType,
                                  java.lang.String channelNameAttribute,
                                  ChannelRegistry channelRegistry)
Method Detail

getPointcut

public org.springframework.aop.Pointcut getPointcut()

getAdvice

public org.aopalliance.aop.Advice getAdvice()