接口 ApplicationContextFailureProcessor


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

Implementations must be registered via the TodayStrategies mechanism.

从以下版本开始:
4.0 2023/6/15 21:13
作者:
Sam Brannen, Harry Yang
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    processLoadFailure(cn.taketoday.context.ApplicationContext context, Throwable exception)
    Invoked when a failure was encountered while attempting to load an ApplicationContext.
  • 方法详细资料

    • processLoadFailure

      void processLoadFailure(cn.taketoday.context.ApplicationContext context, 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.

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