public final class FailureAnalyzers extends Object
FailureAnalyzer
and FailureAnalysisReporter
instances loaded from spring.factories
.
A FailureAnalyzer
that requires access to the BeanFactory
in order to
perform its analysis can implement BeanFactoryAware
to have the
BeanFactory
injected prior to FailureAnalyzer.analyze(Throwable)
being
called.
Constructor and Description |
---|
FailureAnalyzers(org.springframework.context.ConfigurableApplicationContext context)
Create a new
FailureAnalyzers instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
analyzeAndReport(Throwable failure)
Analyze and report the specified
failure . |
public FailureAnalyzers(org.springframework.context.ConfigurableApplicationContext context)
FailureAnalyzers
instance.context
- the source application contextpublic boolean analyzeAndReport(Throwable failure)
failure
.failure
- the failure to analyzetrue
if the failure was handledCopyright © 2019 Pivotal Software, Inc.. All rights reserved.