org.springframework.batch.support
Class ExceptionClassifierSupport

java.lang.Object
  extended by org.springframework.batch.support.ExceptionClassifierSupport
All Implemented Interfaces:
ExceptionClassifier
Direct Known Subclasses:
BinaryExceptionClassifier, SubclassExceptionClassifier

public class ExceptionClassifierSupport
extends Object
implements ExceptionClassifier

Base class for ExceptionClassifier implementations. Provides default behaviour and some convenience members, like constants.

Author:
Dave Syer

Field Summary
static String DEFAULT
          Default classification key.
 
Constructor Summary
ExceptionClassifierSupport()
           
 
Method Summary
 Object classify(Throwable throwable)
          Always returns the value of DEFAULT.
 Object getDefault()
          Wrapper for a call to classify(Throwable) with argument null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final String DEFAULT
Default classification key.

See Also:
Constant Field Values
Constructor Detail

ExceptionClassifierSupport

public ExceptionClassifierSupport()
Method Detail

classify

public Object classify(Throwable throwable)
Always returns the value of DEFAULT.

Specified by:
classify in interface ExceptionClassifier
Parameters:
throwable - the input exception. Can be null.
Returns:
an object.
See Also:
ExceptionClassifier.classify(java.lang.Throwable)

getDefault

public Object getDefault()
Wrapper for a call to classify(Throwable) with argument null.

Specified by:
getDefault in interface ExceptionClassifier
Returns:
the default value.
See Also:
ExceptionClassifier.getDefault()


Copyright © 2008 SpringSource. All Rights Reserved.