Class AbstractInjectionFailureAnalyzer<T extends Throwable>
- java.lang.Object
- org.springframework.boot.diagnostics.AbstractFailureAnalyzer<T>
- org.springframework.boot.diagnostics.analyzer.AbstractInjectionFailureAnalyzer<T>
- Type Parameters:
T
- the type of exception to analyze
- All Implemented Interfaces:
FailureAnalyzer
public abstract class AbstractInjectionFailureAnalyzer<T extends Throwable> extends AbstractFailureAnalyzer<T>
Abstract base class for aFailureAnalyzer
that handles some kind of injection failure.- Since:
- 1.4.1
Constructor Summary
Constructors Constructor Description AbstractInjectionFailureAnalyzer()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected FailureAnalysis
analyze(Throwable rootFailure, T cause)
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.protected abstract FailureAnalysis
analyze(Throwable rootFailure, T cause, String description)
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.Methods inherited from class org.springframework.boot.diagnostics.AbstractFailureAnalyzer
analyze, findCause, getCauseType
Constructor Detail
AbstractInjectionFailureAnalyzer
public AbstractInjectionFailureAnalyzer()
Method Detail
analyze
protected final FailureAnalysis analyze(Throwable rootFailure, T cause)
Description copied from class:AbstractFailureAnalyzer
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.- Specified by:
analyze
in classAbstractFailureAnalyzer<T extends Throwable>
- Parameters:
rootFailure
- the root failure passed to the analyzercause
- the actual found cause- Returns:
- the analysis or
null
analyze
protected abstract FailureAnalysis analyze(Throwable rootFailure, T cause, String description)
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.- Parameters:
rootFailure
- the root failure passed to the analyzercause
- the actual found causedescription
- the description of the injection point ornull
- Returns:
- the analysis or
null