クラス 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、LockRequestHandlerAdvice、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 interfaceprotected static final classフィールドのサマリー
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected abstract @Nullable ObjectSEdoInvoke(AbstractRequestHandlerAdvice.ExecutionCallback callback, ObjectSE target, Message<?> message) サブクラスは、このメソッドを実装して、MessageHandlerに動作を適用します。final @Nullable ObjectSEinvoke(MethodInvocation invocation) protected ExceptionSEunwrapExceptionIfNecessary(ExceptionSE exception) protected ThrowableSEクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, 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
getComponentType
- 次で指定:
- インターフェース
NamedComponentのgetComponentType
doInvoke
protected abstract @Nullable ObjectSE doInvoke(AbstractRequestHandlerAdvice.ExecutionCallback callback, ObjectSE target, Message<?> message) サブクラスは、このメソッドを実装して、MessageHandlerに動作を適用します。callback.execute() はハンドラーメソッドを呼び出し、その結果、null を返します。
- パラメーター:
callback- サブクラスは、このインターフェースで execute() メソッドを呼び出して、ハンドラーメソッドを呼び出します。target- ターゲットハンドラー。message- ハンドラーに送信されるメッセージ。- 戻り値:
MessageHandlerを呼び出した後の結果。
unwrapExceptionIfNecessary
- パラメーター:
exception- 例外。- 戻り値:
AbstractRequestHandlerAdvice.ThrowableHolderExceptionでない場合の原因または例外
unwrapThrowableIfNecessary
- パラメーター:
e- 例外。- 戻り値:
- 原因、または e(
AbstractRequestHandlerAdvice.ThrowableHolderExceptionでない場合)