org.springframework.jee.transaction
Class AbstractApplicationExceptionManager
java.lang.Object
org.springframework.jee.transaction.AbstractApplicationExceptionManager
- All Implemented Interfaces:
- ApplicationExceptionManager
- Direct Known Subclasses:
- DefaultApplicationExceptionManager
public abstract class AbstractApplicationExceptionManager
- extends java.lang.Object
- implements ApplicationExceptionManager
Abstract implementation containing the ejb specification shortcut rules:
- if the throwable is Error or RemoteException then it is SystemException
- if the throwable is CreateException/FinderException/RemoveException then it is an ApplicationException
.
This class is meant only for internal usage and should be subclassed to add the rest of the
cases and advanced functionality like exception caching.
- Author:
- Costin Leau
Field Summary |
protected org.apache.commons.logging.Log |
log
|
Method Summary |
boolean |
causesRollback(java.lang.Throwable throwable)
Returns true if the given throwable cause rollback. |
protected abstract boolean |
shouldCauseRollback(java.lang.Exception exception)
Subclasses should extend this for more complex functionality. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.commons.logging.Log log
AbstractApplicationExceptionManager
public AbstractApplicationExceptionManager()
causesRollback
public boolean causesRollback(java.lang.Throwable throwable)
- Description copied from interface:
ApplicationExceptionManager
- Returns true if the given throwable cause rollback.
- Specified by:
causesRollback
in interface ApplicationExceptionManager
- Returns:
shouldCauseRollback
protected abstract boolean shouldCauseRollback(java.lang.Exception exception)
- Subclasses should extend this for more complex functionality.
- Parameters:
exception
-
- Returns:
Copyright 2006 Interface21. All Rights Reserved.