org.springframework.batch.support
Class ExceptionClassifierSupport
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final String DEFAULT
- Default classification key.
- See Also:
- Constant Field Values
ExceptionClassifierSupport
public ExceptionClassifierSupport()
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 © 2009 SpringSource. All Rights Reserved.