Class FailFastProblemReporter
java.lang.Object
org.springframework.beans.factory.parsing.FailFastProblemReporter
- All Implemented Interfaces:
- ProblemReporter
Simple 
ProblemReporter implementation that exhibits fail-fast
 behavior when errors are encountered.
 The first error encountered results in a BeanDefinitionParsingException
 being thrown.
 
Warnings are written to
 the log for this class.
- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller, Rick Evans
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidThrows aBeanDefinitionParsingExceptiondetailing the error that has occurred.voidThrows aBeanDefinitionParsingExceptiondetailing the error that has occurred.voidSet theloggerthat is to be used to report warnings.void
- 
Constructor Details- 
FailFastProblemReporterpublic FailFastProblemReporter()
 
- 
- 
Method Details- 
setLoggerSet theloggerthat is to be used to report warnings.If set to nullthen a defaultloggerset to the name of the instance class will be used.- Parameters:
- logger- the- loggerthat is to be used to report warnings
 
- 
fatalThrows aBeanDefinitionParsingExceptiondetailing the error that has occurred.- Specified by:
- fatalin interface- ProblemReporter
- Parameters:
- problem- the source of the error
 
- 
errorThrows aBeanDefinitionParsingExceptiondetailing the error that has occurred.- Specified by:
- errorin interface- ProblemReporter
- Parameters:
- problem- the source of the error
 
- 
warning- Specified by:
- warningin interface- ProblemReporter
- Parameters:
- problem- the source of the warning
 
 
-