类 FailFastProblemReporter
- java.lang.Object
- org.springframework.beans.factory.parsing.FailFastProblemReporter
- 所有已实现的接口:
ProblemReporter
public class FailFastProblemReporter extends Object implements ProblemReporter
SimpleProblemReporter
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.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller, Rick Evans
构造器概要
构造器 构造器 说明 FailFastProblemReporter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
error(Problem problem)
Throws aBeanDefinitionParsingException
detailing the error that has occurred.void
fatal(Problem problem)
Throws aBeanDefinitionParsingException
detailing the error that has occurred.void
setLogger(Log logger)
Set thelogger
that is to be used to report warnings.void
warning(Problem problem)
构造器详细资料
FailFastProblemReporter
public FailFastProblemReporter()
方法详细资料
setLogger
public void setLogger(Log logger)
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.- 参数:
logger
- thelogger
that is to be used to report warnings
fatal
public void fatal(Problem problem)
Throws aBeanDefinitionParsingException
detailing the error that has occurred.- 指定者:
fatal
在接口中ProblemReporter
- 参数:
problem
- the source of the error
error
public void error(Problem problem)
Throws aBeanDefinitionParsingException
detailing 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