public class MessagePublishingInterceptor extends ObjectSE implements MethodInterceptor, BeanFactoryAware
MethodInterceptor。公開されたメッセージのペイロードは、引数、またはメソッド呼び出しの結果として生じる任意の戻り値または例外から取得できます。そのマッピングは、PublisherMetadataSource によって提供される EL 式の責任です。| コンストラクターと説明 |
|---|
MessagePublishingInterceptor(org.springframework.integration.aop.PublisherMetadataSource metadataSource) |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected MessageBuilderFactory | getMessageBuilderFactory() |
ObjectSE | invoke(MethodInvocation invocation) |
void | setBeanFactory(BeanFactory beanFactory) |
void | setChannelResolver(DestinationResolver<MessageChannel> channelResolver) |
void | setDefaultChannelName(StringSE defaultChannelName) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic MessagePublishingInterceptor(org.springframework.integration.aop.PublisherMetadataSource metadataSource)
public void setDefaultChannelName(StringSE defaultChannelName)
defaultChannelName - デフォルトのチャネル名。public void setChannelResolver(DestinationResolver<MessageChannel> channelResolver)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactoryAware の setBeanFactory BeansExceptionprotected MessageBuilderFactory getMessageBuilderFactory()
public final ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
MethodInterceptor の invoke ThrowableSE