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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void handleFailure(java.lang.Class<?> type, java.lang.String implementationName, java.lang.Throwable failure)
      Handle the failure that occurred when instantiating the type that was expected to be of the given typeSupplier.
    • Method Detail

      • handleFailure

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