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 Summary
Constructors - 
Method Summary
Modifier 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
- 
FailFastProblemReporter
public FailFastProblemReporter() 
 - 
 - 
Method Details
- 
setLogger
Set 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- theloggerthat is to be used to report warnings
 - 
fatal
Throws aBeanDefinitionParsingExceptiondetailing the error that has occurred.- Specified by:
 fatalin interfaceProblemReporter- Parameters:
 problem- the source of the error
 - 
error
Throws aBeanDefinitionParsingExceptiondetailing the error that has occurred.- Specified by:
 errorin interfaceProblemReporter- Parameters:
 problem- the source of the error
 - 
warning
- Specified by:
 warningin interfaceProblemReporter- Parameters:
 problem- the source of the warning
 
 -