Class PublisherAnnotationAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.integration.aop.PublisherAnnotationAdvisor
- All Implemented Interfaces:
java.io.Serializable
,org.springframework.aop.Advisor
,org.springframework.aop.PointcutAdvisor
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.core.Ordered
public class PublisherAnnotationAdvisor
extends org.springframework.aop.support.AbstractPointcutAdvisor
implements org.springframework.beans.factory.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
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PublisherAnnotationAdvisor()
PublisherAnnotationAdvisor(java.lang.Class<? extends java.lang.annotation.Annotation>... publisherAnnotationTypes)
-
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
PublisherAnnotationAdvisor
public PublisherAnnotationAdvisor() -
PublisherAnnotationAdvisor
@SafeVarargs public PublisherAnnotationAdvisor(java.lang.Class<? extends java.lang.annotation.Annotation>... publisherAnnotationTypes)
-
-
Method Details
-
setDefaultChannelName
public void setDefaultChannelName(java.lang.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(org.springframework.beans.factory.BeanFactory beanFactory)- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
-
getAdvice
public org.aopalliance.aop.Advice getAdvice()- Specified by:
getAdvice
in interfaceorg.springframework.aop.Advisor
-
getPointcut
public org.springframework.aop.Pointcut getPointcut()- Specified by:
getPointcut
in interfaceorg.springframework.aop.PointcutAdvisor
-