Class PublisherAnnotationAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.integration.aop.PublisherAnnotationAdvisor
- All Implemented Interfaces:
Serializable, Advisor, PointcutAdvisor, Aware, BeanFactoryAware, Ordered
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, Jooyoung Pyoung
- See Also:
-
Field Summary
Fields inherited from interface Advisor
EMPTY_ADVICEFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionPublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBeanFactory(BeanFactory beanFactory) voidsetDefaultChannelName(@Nullable String defaultChannelName) A channel bean name to be used as default for publishing.Methods inherited from class AbstractPointcutAdvisor
equals, getOrder, hashCode, setOrderMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Advisor
isPerInstance
-
Constructor Details
-
PublisherAnnotationAdvisor
public PublisherAnnotationAdvisor() -
PublisherAnnotationAdvisor
@SafeVarargs public PublisherAnnotationAdvisor(Class<? extends Annotation>... publisherAnnotationTypes)
-
-
Method Details
-
setDefaultChannelName
A channel bean name to be used as default for publishing.- Parameters:
defaultChannelName- the default channel name.- Since:
- 4.0.3
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware
-
getAdvice
-
getPointcut
- Specified by:
getPointcutin interfacePointcutAdvisor
-