Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.beans.factory.parsing
Class FailFastProblemReporter

    java.lang.Object
      org.springframework.beans.factory.parsing.FailFastProblemReporter

All Implemented Interfaces:
  ProblemReporter

    public class FailFastProblemReporter

extends java.lang.Object
implements ProblemReporter

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.

Since:
  2.0
Author:
  Rob Harrop, Juergen Hoeller, Rick Evans

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(org.apache.commons.logging.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

### FailFastProblemReporter

    public FailFastProblemReporter()

Method Detail

### setLogger

    public void setLogger(org.apache.commons.logging.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` - the `logger` that is to be used to report warnings

### fatal

    public void fatal(Problem problem)

  Throws a `BeanDefinitionParsingException` detailing the error that has occurred.

  Specified by:
    `fatal` in interface `ProblemReporter`
  Parameters:
    `problem` - the source of the error

### error

    public void error(Problem problem)

  Throws a `BeanDefinitionParsingException` detailing the error that has occurred.

  Specified by:
    `error` in interface `ProblemReporter`
  Parameters:
    `problem` - the source of the error

### warning

    public void warning(Problem problem)

  Writes the supplied `Problem` to the `Log` at `WARN` level.

  Specified by:
    `warning` in interface `ProblemReporter`
  Parameters:
    `problem` - the source of the warning

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD