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 TypeMethodDescriptionvoid
handleFailure
(Class<?> type, String implementationName, Throwable failure) Handle thefailure
that occurred when instantiating thetype
that was expected to be of the giventypeSupplier
.
-
Method Details
-
handleFailure
Handle thefailure
that occurred when instantiating thetype
that was expected to be of the giventypeSupplier
.- Parameters:
type
- the typeimplementationName
- the name of the implementation typefailure
- the failure that occurred
-