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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Throws aBeanDefinitionParsingException
detailing the error that has occurred.void
Throws aBeanDefinitionParsingException
detailing the error that has occurred.void
Set thelogger
that is to be used to report warnings.void
-
Constructor Details
-
FailFastProblemReporter
public FailFastProblemReporter()
-
-
Method Details
-
setLogger
Set thelogger
that is to be used to report warnings.If set to
null
then a defaultlogger
set to the name of the instance class will be used.- Parameters:
logger
- thelogger
that is to be used to report warnings
-
fatal
Throws aBeanDefinitionParsingException
detailing the error that has occurred.- Specified by:
fatal
in interfaceProblemReporter
- Parameters:
problem
- the source of the error
-
error
Throws aBeanDefinitionParsingException
detailing the error that has occurred.- Specified by:
error
in interfaceProblemReporter
- Parameters:
problem
- the source of the error
-
warning
- Specified by:
warning
in interfaceProblemReporter
- Parameters:
problem
- the source of the warning
-