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 Type
    Method
    Description
    void
    handleFailure(Class<?> type, String implementationName, Throwable failure)
    Handle the failure that occurred when instantiating the type that was expected to be of the given typeSupplier.
  • Method Details

    • handleFailure

      void handleFailure(Class<?> type, String implementationName, 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