Package org.springframework.test.context
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 Summary
Modifier and TypeMethodDescriptionvoid
processLoadFailure
(ApplicationContext context, Throwable exception) Invoked when a failure was encountered while attempting to load anApplicationContext
.
-
Method Details
-
processLoadFailure
Invoked when a failure was encountered while attempting to load anApplicationContext
.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 successfullyexception
- the exception thrown while loading the application context
-