类 FailureAnalyzers
- java.lang.Object
- org.springframework.boot.diagnostics.FailureAnalyzers
public final class FailureAnalyzers extends Object
Utility to triggerFailureAnalyzer
andFailureAnalysisReporter
instances loaded fromspring.factories
.A
FailureAnalyzer
that requires access to theBeanFactory
in order to perform its analysis can implementBeanFactoryAware
to have theBeanFactory
injected prior toFailureAnalyzer.analyze(Throwable)
being called.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 FailureAnalyzers(org.springframework.context.ConfigurableApplicationContext context)
Create a newFailureAnalyzers
instance.
构造器详细资料
FailureAnalyzers
public FailureAnalyzers(org.springframework.context.ConfigurableApplicationContext context)
Create a newFailureAnalyzers
instance.- 参数:
context
- the source application context- 从以下版本开始:
- 1.4.1
方法详细资料
analyzeAndReport
public boolean analyzeAndReport(Throwable failure)
Analyze and report the specifiedfailure
.- 参数:
failure
- the failure to analyze- 返回:
true
if the failure was handled