接口 Instantiator.FailureHandler

封闭类:
Instantiator<T>

public static interface Instantiator.FailureHandler
Strategy for handling a failure that occurs when instantiating a type.
从以下版本开始:
2.7.0
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    handleFailure(Class<?> type, String implementationName, Throwable failure)
    Handle the failure that occurred when instantiating the type that was expected to be of the given typeSupplier.
  • 方法详细资料

    • handleFailure

      void handleFailure(Class<?> type, String implementationName, Throwable failure)
      Handle the failure that occurred when instantiating the type that was expected to be of the given typeSupplier.
      参数:
      type - the type
      implementationName - the name of the implementation type
      failure - the failure that occurred