接口 Instantiator.FailureHandler
- 封闭类:
Instantiator<T>
public static interface Instantiator.FailureHandler
Strategy for handling a failure that occurs when instantiating a type.
- 从以下版本开始:
- 2.7.0
-
方法概要
修饰符和类型方法说明voidhandleFailure(Class<?> type, String implementationName, Throwable failure) Handle thefailurethat occurred when instantiating thetypethat was expected to be of the giventypeSupplier.
-
方法详细资料
-
handleFailure
Handle thefailurethat occurred when instantiating thetypethat was expected to be of the giventypeSupplier.- 参数:
type- the typeimplementationName- the name of the implementation typefailure- the failure that occurred
-