public class FailFastProblemReporter extends Object implements ProblemReporter
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.
| Constructor and Description |
|---|
FailFastProblemReporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(Problem problem)
Throws a
BeanDefinitionParsingException detailing the error
that has occurred. |
void |
fatal(Problem problem)
Throws a
BeanDefinitionParsingException detailing the error
that has occurred. |
void |
setLogger(Log logger)
Set the
logger that is to be used to report warnings. |
void |
warning(Problem problem)
|
public void setLogger(Log logger)
logger that is to be used to report warnings.
If set to null then a default logger set to
the name of the instance class will be used.
logger - the logger that is to be used to report warningspublic void fatal(Problem problem)
BeanDefinitionParsingException detailing the error
that has occurred.fatal in interface ProblemReporterproblem - the source of the errorpublic void error(Problem problem)
BeanDefinitionParsingException detailing the error
that has occurred.error in interface ProblemReporterproblem - the source of the errorpublic void warning(Problem problem)
warning in interface ProblemReporterproblem - the source of the warning