类 FailFastProblemReporter
- java.lang.Object
- org.springframework.beans.factory.parsing.FailFastProblemReporter
- 所有已实现的接口:
ProblemReporter
public class FailFastProblemReporter extends Object implements ProblemReporter
SimpleProblemReporterimplementation that exhibits fail-fast behavior when errors are encountered.The first error encountered results in a
BeanDefinitionParsingExceptionbeing thrown.Warnings are written to
the logfor this class.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller, Rick Evans
构造器概要
构造器 构造器 说明 FailFastProblemReporter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiderror(Problem problem)Throws aBeanDefinitionParsingExceptiondetailing the error that has occurred.voidfatal(Problem problem)Throws aBeanDefinitionParsingExceptiondetailing the error that has occurred.voidsetLogger(Log logger)Set theloggerthat is to be used to report warnings.voidwarning(Problem problem)
构造器详细资料
FailFastProblemReporter
public FailFastProblemReporter()
方法详细资料
setLogger
public void setLogger(@Nullable Log logger)
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.- 参数:
logger- theloggerthat is to be used to report warnings
fatal
public void fatal(Problem problem)
Throws aBeanDefinitionParsingExceptiondetailing the error that has occurred.- 指定者:
fatal在接口中ProblemReporter- 参数:
problem- the source of the error
error
public void error(Problem problem)
Throws aBeanDefinitionParsingExceptiondetailing the error that has occurred.- 指定者:
error在接口中ProblemReporter- 参数:
problem- the source of the error
warning
public void warning(Problem problem)
- 指定者:
warning在接口中ProblemReporter- 参数:
problem- the source of the warning