Spring Integration

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:
Serializable, Advisor, PointcutAdvisor, 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
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
PublisherAnnotationAdvisor()
           
PublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes)
           
 
Method Summary
 org.aopalliance.aop.Advice getAdvice()
           
 Pointcut getPointcut()
           
 void setBeanFactory(BeanFactory beanFactory)
           
 void setDefaultChannel(MessageChannel defaultChannel)
           
 
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
 

Constructor Detail

PublisherAnnotationAdvisor

public PublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes)

PublisherAnnotationAdvisor

public PublisherAnnotationAdvisor()
Method Detail

setDefaultChannel

public void setDefaultChannel(MessageChannel defaultChannel)

setBeanFactory

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

getAdvice

public org.aopalliance.aop.Advice getAdvice()
Specified by:
getAdvice in interface Advisor

getPointcut

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

Spring Integration

Copyright © 2010. All Rights Reserved.