Top Description Fields Constructors Methods
org.springframework.beans.factory.parsing

public Class FailFastProblemReporter

extends Object
implements ProblemReporter
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.parsing.ProblemReporter
Imports
org.apache.commons.logging.Log, .LogFactory, org.springframework.lang.Nullable

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.

Authors
Rob Harrop, Juergen Hoeller, Rick Evans
Since
2.0

Field Summary

Modifier and TypeField and Description
private Log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
error(Problem
the source of the error
problem
)

Implements org.springframework.beans.factory.parsing.ProblemReporter.error.

Throws a BeanDefinitionParsingException detailing the error that has occurred.

public void
fatal(Problem
the source of the error
problem
)

Implements org.springframework.beans.factory.parsing.ProblemReporter.fatal.

Throws a BeanDefinitionParsingException detailing the error that has occurred.

public void
setLogger(Log
the logger that is to be used to report warnings
logger
)

Set the logger that is to be used to report warnings.

public void
warning(Problem
the source of the warning
problem
)

Implements org.springframework.beans.factory.parsing.ProblemReporter.warning.

Writes the supplied Problem to the Log at WARN level.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private Log logger

Constructor Detail

FailFastProblemReporterback to summary
public FailFastProblemReporter()

Method Detail

errorback to summary
public void error(Problem problem)

Implements org.springframework.beans.factory.parsing.ProblemReporter.error.

Throws a BeanDefinitionParsingException detailing the error that has occurred.

Parameters
problem:Problem

the source of the error

Annotations
@Override
fatalback to summary
public void fatal(Problem problem)

Implements org.springframework.beans.factory.parsing.ProblemReporter.fatal.

Throws a BeanDefinitionParsingException detailing the error that has occurred.

Parameters
problem:Problem

the source of the error

Annotations
@Override
setLoggerback to summary
public void setLogger(Log logger)

Set the 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.

Parameters
logger:Log

the logger that is to be used to report warnings

warningback to summary
public void warning(Problem problem)

Implements org.springframework.beans.factory.parsing.ProblemReporter.warning.

Writes the supplied Problem to the Log at WARN level.

Parameters
problem:Problem

the source of the warning

Annotations
@Override