Interface ApplicationContextFailureProcessor


public interface ApplicationContextFailureProcessor
Strategy for components that process failures related to application contexts within the Spring TestContext Framework.

Implementations must be registered via the SpringFactoriesLoader mechanism.

Since:
6.0
Author:
Sam Brannen
See Also:
  • Method Details

    • processLoadFailure

      void processLoadFailure(ApplicationContext context, @Nullable Throwable exception)
      Invoked when a failure was encountered while attempting to load an ApplicationContext.

      Implementations of this method must not throw any exceptions. Consequently, any exception thrown by an implementation of this method will be ignored, though potentially logged.

      Parameters:
      context - the application context that did not load successfully
      exception - the exception thrown while loading the application context