|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.beans.factory.parsing.FailFastProblemReporter
public class FailFastProblemReporter
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.
| Constructor Summary | |
|---|---|
FailFastProblemReporter()
|
|
| Method Summary | |
|---|---|
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)
Writes the supplied Problem to the Log at WARN level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FailFastProblemReporter()
| Method Detail |
|---|
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)
Problem to the Log at WARN level.
warning in interface ProblemReporterproblem - the source of the warning
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||