Package org.springframework.boot.util
Interface Instantiator.FailureHandler
- Enclosing class:
- Instantiator<T>
public static interface Instantiator.FailureHandler
Strategy for handling a failure that occurs when instantiating a type.
- Since:
- 2.7.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleFailure(Class<?> type, String implementationName, Throwable failure) Handle thefailurethat occurred when instantiating thetypethat was expected to be of the giventypeSupplier.
-
Method Details
-
handleFailure
Handle thefailurethat occurred when instantiating thetypethat was expected to be of the giventypeSupplier.- Parameters:
type- the typeimplementationName- the name of the implementation typefailure- the failure that occurred
-