接口 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 thefailure
that occurred when instantiating thetype
that was expected to be of the giventypeSupplier
.
-
方法详细资料
-
handleFailure
Handle thefailure
that occurred when instantiating thetype
that was expected to be of the giventypeSupplier
.- 参数:
type
- the typeimplementationName
- the name of the implementation typefailure
- the failure that occurred
-