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(ConfigurableApplicationContext context)
Create a new
FailureAnalyzers instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
analyzeAndReport(Throwable failure)
Analyze and report the specified
failure . |
static boolean |
analyzeAndReport(Throwable failure,
ClassLoader classLoader,
ConfigurableApplicationContext context)
Deprecated.
as of 1.4.1 in favor of
analyzeAndReport(Throwable) |
public FailureAnalyzers(ConfigurableApplicationContext context)
FailureAnalyzers
instance.context
- the source application contextpublic boolean analyzeAndReport(Throwable failure)
failure
.failure
- the failure to analyzetrue
if the failure was handled@Deprecated public static boolean analyzeAndReport(Throwable failure, ClassLoader classLoader, ConfigurableApplicationContext context)
analyzeAndReport(Throwable)
failure
.failure
- the failure to analyzeclassLoader
- the classloader to usecontext
- the context to usetrue
if the failure was handledCopyright © 2017 Pivotal Software, Inc.. All rights reserved.