public abstract class AbstractRequestHandlerAdvice extends IntegrationObjectSupport implements MethodInterceptor
MessageHandler アドバイスクラスの基本クラス。サブクラスは doInvoke(ExecutionCallback, Object, Message) の実装を提供する必要があります。他のメッセージハンドラーの AbstractReplyProducingMessageHandler または MessageHandler.handleMessage(Message) の handleRequestMessage メソッドをアドバイスするために使用されます。| 修飾子と型 | クラスと説明 |
|---|---|
protected static interface | AbstractRequestHandlerAdvice.ExecutionCallbackdoInvoke() のサブクラスによって呼び出され、proceed() が呼び出されます。 |
protected static class | AbstractRequestHandlerAdvice.ThrowableHolderException |
EXPRESSION_PARSER, logger| コンストラクターと説明 |
|---|
AbstractRequestHandlerAdvice() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected abstract ObjectSE | doInvoke(AbstractRequestHandlerAdvice.ExecutionCallback callback, ObjectSE target, Message<?> message) サブクラスは、このメソッドを実装して、 MessageHandler に動作を適用します。 |
ObjectSE | invoke(MethodInvocation invocation) |
protected ExceptionSE | unwrapExceptionIfNecessary(ExceptionSE e) |
protected ThrowableSE | unwrapThrowableIfNecessary(ExceptionSE e) |
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic final ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
MethodInterceptor の invoke ThrowableSEprotected abstract ObjectSE doInvoke(AbstractRequestHandlerAdvice.ExecutionCallback callback, ObjectSE target, Message<?> message)
MessageHandler に動作を適用します。callback.execute() はハンドラーメソッドを呼び出し、その結果、null を返します。
callback - サブクラスは、このインターフェースで execute() メソッドを呼び出して、ハンドラーメソッドを呼び出します。target - ターゲットハンドラー。message - ハンドラーに送信されるメッセージ。MessageHandler を呼び出した後の結果。protected ExceptionSE unwrapExceptionIfNecessary(ExceptionSE e)
e - 例外。AbstractRequestHandlerAdvice.ThrowableHolderException でない場合)protected ThrowableSE unwrapThrowableIfNecessary(ExceptionSE e)
e - 例外。AbstractRequestHandlerAdvice.ThrowableHolderException でない場合)