public class MessagePublishingInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor, BeanFactoryAware
MethodInterceptor
that publishes Messages to a channel. The
payload of the published Message can be derived from arguments or any return
value or exception resulting from the method invocation. That mapping is the
responsibility of the EL expression provided by the PublisherMetadataSource
.Constructor and Description |
---|
MessagePublishingInterceptor(org.springframework.integration.aop.PublisherMetadataSource metadataSource) |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setChannelResolver(DestinationResolver<MessageChannel> channelResolver) |
void |
setDefaultChannel(MessageChannel defaultChannel) |
void |
setPublisherMetadataSource(org.springframework.integration.aop.PublisherMetadataSource metadataSource) |
public MessagePublishingInterceptor(org.springframework.integration.aop.PublisherMetadataSource metadataSource)
public void setPublisherMetadataSource(org.springframework.integration.aop.PublisherMetadataSource metadataSource)
public void setDefaultChannel(MessageChannel defaultChannel)
public void setChannelResolver(DestinationResolver<MessageChannel> channelResolver)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException