クラス 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

      public GrpcExceptionHandlerMethodResolver(GrpcAdviceDiscoverer grpcAdviceDiscoverer)
      新しいインスタンスを作成します。
      パラメーター:
      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

      public <E extends ThrowableSE> boolean isMethodMappedForException(ClassSE<E> exception)
      Check if a handler method exists for the given exception type.
      型パラメーター:
      E - 例外型
      パラメーター:
      exception - the exception type to check
      戻り値:
      true if a handler is mapped