クラス GrpcExceptionHandlerMethodResolver
java.lang.ObjectSE
org.springframework.grpc.server.advice.GrpcExceptionHandlerMethodResolver
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.InitializingBean
public class GrpcExceptionHandlerMethodResolver
extends ObjectSE
implements org.springframework.beans.factory.InitializingBean
例外型を
@GrpcExceptionHandler メソッドにマッピングします。- 作成者:
- Oleksandr Shevchenko
- 関連事項:
コンストラクター概要
コンストラクターコンストラクター説明GrpcExceptionHandlerMethodResolver(GrpcAdviceDiscoverer grpcAdviceDiscoverer) 新しいインスタンスを作成します。方法の概要
修飾子と型メソッド説明void<E extends ThrowableSE>
booleanisMethodMappedForException(ClassSE<E> exception) Check if a handler method exists for the given exception type.<E extends ThrowableSE>
Map.EntrySE<@Nullable ObjectSE, @Nullable MethodSE> resolveMethodWithInstance(ClassSE<E> exceptionType) 指定された例外型に対応するハンドラーメソッドと Bean インスタンスを解決します。
コンストラクターの詳細
GrpcExceptionHandlerMethodResolver
新しいインスタンスを作成します。- パラメーター:
grpcAdviceDiscoverer- アドバイス発見者が使用する
方法の詳細
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean内のafterPropertiesSet
resolveMethodWithInstance
public <E extends ThrowableSE> Map.EntrySE<@Nullable ObjectSE, @Nullable MethodSE> resolveMethodWithInstance(ClassSE<E> exceptionType) 指定された例外型に対応するハンドラーメソッドと Bean インスタンスを解決します。- 型パラメーター:
E- 例外型- パラメーター:
exceptionType- the exception type to resolve- 戻り値:
- entry with bean and method, or nulls if no mapping exists
isMethodMappedForException
Check if a handler method exists for the given exception type.- 型パラメーター:
E- 例外型- パラメーター:
exception- the exception type to check- 戻り値:
trueif a handler is mapped