public class

FailFastProblemReporter

extends Object
implements ProblemReporter
java.lang.Object
   ↳ org.springframework.beans.factory.parsing.FailFastProblemReporter

Class Overview

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 #setLogger(org.apache.commons.logging.Log) the log for this class.

Summary

Public Constructors
FailFastProblemReporter()
Public Methods
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 Log logger that is to be used to report warnings.
void warning(Problem problem)
Writes the supplied Problem to the Log at WARN level.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.parsing.ProblemReporter

Public Constructors

public FailFastProblemReporter ()

Also: SpringBeans

Public Methods

public void error (Problem problem)

Also: SpringBeans

Throws a BeanDefinitionParsingException detailing the error that has occurred.

Parameters
problem the source of the error

public void fatal (Problem problem)

Also: SpringBeans

Throws a BeanDefinitionParsingException detailing the error that has occurred.

Parameters
problem the source of the error

public void setLogger (Log logger)

Also: SpringBeans

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

If set to null then a default Log logger set to the name of the instance class will be used.

Parameters
logger the Log logger that is to be used to report warnings

public void warning (Problem problem)

Also: SpringBeans

Writes the supplied Problem to the Log at WARN level.

Parameters
problem the source of the warning