クラス AbstractRequestHandlerAdvice
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.advice.AbstractRequestHandlerAdvice
- 実装されたすべてのインターフェース:
Advice
、Interceptor
、MethodInterceptor
、Aware
、BeanFactoryAware
、BeanNameAware
、InitializingBean
、ApplicationContextAware
、ComponentSourceAware
、ExpressionCapable
、NamedComponent
- 既知の直属サブクラス
CacheRequestHandlerAdvice
、ContextHolderRequestHandlerAdvice
、ExpressionEvaluatingRequestHandlerAdvice
、RateLimiterRequestHandlerAdvice
、RequestHandlerCircuitBreakerAdvice
、RequestHandlerRetryAdvice
public abstract class AbstractRequestHandlerAdvice
extends IntegrationObjectSupport
implements MethodInterceptor
MessageHandler
アドバイスクラスの基本クラス。サブクラスは doInvoke(ExecutionCallback, Object, Message)
の実装を提供する必要があります。他のメッセージハンドラーの AbstractReplyProducingMessageHandler
または MessageHandler.handleMessage(Message)
の handleRequestMessage メソッドをアドバイスするために使用されます。- 導入:
- 2.2
- 作成者:
- Gary Russell, Artem Bilan, Ngoc Nhan
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明protected static interface
doInvoke() のサブクラスによって呼び出され、proceed() が呼び出されます。protected static final class
フィールドのサマリー
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, logger
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected abstract ObjectSE
doInvoke
(AbstractRequestHandlerAdvice.ExecutionCallback callback, ObjectSE target, Message<?> message) サブクラスは、このメソッドを実装して、MessageHandler
に動作を適用します。final ObjectSE
invoke
(MethodInvocation invocation) protected ExceptionSE
protected ThrowableSE
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getComponentType, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
コンストラクターの詳細
AbstractRequestHandlerAdvice
public AbstractRequestHandlerAdvice()
メソッドの詳細
invoke
- 次で指定:
- インターフェース
MethodInterceptor
のinvoke
- 例外:
ThrowableSE
doInvoke
protected abstract ObjectSE doInvoke(AbstractRequestHandlerAdvice.ExecutionCallback callback, ObjectSE target, Message<?> message) サブクラスは、このメソッドを実装して、MessageHandler
に動作を適用します。callback.execute() はハンドラーメソッドを呼び出し、その結果、null を返します。
- パラメーター:
callback
- サブクラスは、このインターフェースで execute() メソッドを呼び出して、ハンドラーメソッドを呼び出します。target
- ターゲットハンドラー。message
- ハンドラーに送信されるメッセージ。- 戻り値:
MessageHandler
を呼び出した後の結果。
unwrapExceptionIfNecessary
- パラメーター:
e
- 例外。- 戻り値:
- 原因、または e(
AbstractRequestHandlerAdvice.ThrowableHolderException
でない場合)
unwrapThrowableIfNecessary
- パラメーター:
e
- 例外。- 戻り値:
- 原因、または e(
AbstractRequestHandlerAdvice.ThrowableHolderException
でない場合)